[C++] Use 'nullptr'.
[oota-llvm.git] / lib / TableGen / TGParser.cpp
index f94c6f62a4c7f7ea1e3ab989ecac2692644ea3d4..dd3a0967d1440550a54f0d5b9aab04702142edca 100644 (file)
@@ -115,7 +115,7 @@ bool TGParser::SetValue(Record *CurRec, SMLoc Loc, Init *ValName,
 
     // We should have a BitsInit type now.
     BitsInit *BInit = dyn_cast<BitsInit>(BI);
-    assert(BInit != 0);
+    assert(BInit != nullptr);
 
     SmallVector<Init *, 16> NewBits(CurVal->getNumBits());