[C++] Use 'nullptr'.
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineVectorOps.cpp
index b63c3a6b26d097b149ba08c1d670aa17cee4a9fc..aa81e8c97248dde5efdd79e768c7aace17eb4e51 100644 (file)
@@ -445,7 +445,7 @@ static ShuffleOps CollectShuffleElements(Value *V,
         if (EI->getOperand(0) == PermittedRHS || PermittedRHS == nullptr) {
           Value *RHS = EI->getOperand(0);
           ShuffleOps LR = CollectShuffleElements(VecOp, Mask, RHS);
-          assert(LR.second == 0 || LR.second == RHS);
+          assert(LR.second == nullptr || LR.second == RHS);
 
           if (LR.first->getType() != RHS->getType()) {
             // We tried our best, but we can't find anything compatible with RHS