[C++] Use 'nullptr'.
[oota-llvm.git] / lib / Target / Hexagon / HexagonCopyToCombine.cpp
index 063a932786c92cbb5243bf2b6a263f5743bbf8a4..23de1bf77db1d1731d28567d14ac4cf8c09c946b 100644 (file)
@@ -333,7 +333,7 @@ bool HexagonCopyToCombine::isSafeToMoveTogether(MachineInstr *I1,
 
       // Check for an exact kill (registers match).
       if (I1UseReg && I->killsRegister(I1UseReg)) {
-        assert(KillingInstr == 0 && "Should only see one killing instruction");
+        assert(!KillingInstr && "Should only see one killing instruction");
         KilledOperand = I1UseReg;
         KillingInstr = &*I;
       }