Make clang happy and fix old comment
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 23 Aug 2018 21:47:18 +0000 (23:47 +0200)
committerJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 23 Aug 2018 21:47:18 +0000 (23:47 +0200)
src/jit/emitxarch.cpp
src/jit/morph.cpp

index c8af313..b71f914 100644 (file)
@@ -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);
index f1d5195..8e76c06 100644 (file)
@@ -13108,7 +13108,7 @@ DONE_MORPHING_CHILDREN:
                         // 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);
                     }