Skip to content

Commit

Permalink
Make clang happy and fix old comment
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/coreclr@f633cf2
  • Loading branch information
jakobbotsch committed Aug 23, 2018
1 parent a5737e2 commit 06b1fa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/coreclr/src/jit/emitxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3585,6 +3585,8 @@ void emitter::emitInsRMW(instruction ins, emitAttr attr, GenTreeStoreInd* storeI
case INS_sar_N:
iconVal &= 0x7F;
break;
default:
break;
}

id = emitNewInstrAmdCns(attr, offset, iconVal);
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13108,7 +13108,7 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac)
// The type of the new GT_NEG node cannot just be op1->TypeGet().
// Otherwise we may sign-extend incorrectly in cases where the GT_NEG
// node ends up feeding directly a cast, for example in
// GT_CAST<ubyte>(GT_MUL(-1, s_1.ubyte)
// GT_CAST<ubyte>(GT_MUL(-1, s_1.ubyte))
tree->gtOp.gtOp1 = op1 = gtNewOperNode(GT_NEG, genActualType(op1->TypeGet()), op1);
fgMorphTreeDone(op1);
}
Expand Down

0 comments on commit 06b1fa1

Please sign in to comment.