X86: Mark MOV.*_{TC,NOREX} instruction as code gen only, they aren't real.
[oota-llvm.git] / lib / Target / TargetLoweringObjectFile.cpp
index b9372d04bb176a35396a6285d8819fcc9a1be1fd..dd7b532bbfbaef701376d24ce1aea43711b8ea63 100644 (file)
@@ -101,7 +101,7 @@ static bool IsNullTerminatedString(const Constant *C) {
 
     ConstantInt *Null =
       dyn_cast<ConstantInt>(CVA->getOperand(ATy->getNumElements()-1));
-    if (Null == 0 || Null->getZExtValue() != 0)
+    if (Null == 0 || !Null->isZero())
       return false; // Not null terminated.
 
     // Verify that the null doesn't occur anywhere else in the string.