[MC] Replace NULL constant in code with nullptr.
authorCraig Topper <craig.topper@intel.com>
Tue, 25 Sep 2018 18:33:00 +0000 (18:33 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 25 Sep 2018 18:33:00 +0000 (18:33 +0000)
llvm-svn: 343003

llvm/lib/MC/MCParser/AsmParser.cpp

index 3855feb..4d4ea97 100644 (file)
@@ -1327,7 +1327,7 @@ AsmParser::applyModifierToExpr(const MCExpr *E,
 /// GCC does not fully support this feature and so we will not support it.
 /// TODO: Adding single quote as a string.
 bool AsmParser::isAltmacroString(SMLoc &StrLoc, SMLoc &EndLoc) {
-  assert((StrLoc.getPointer() != NULL) &&
+  assert((StrLoc.getPointer() != nullptr) &&
          "Argument to the function cannot be a NULL value");
   const char *CharPtr = StrLoc.getPointer();
   while ((*CharPtr != '>') && (*CharPtr != '\n') && (*CharPtr != '\r') &&