[llvm] r343003 - [MC] Replace NULL constant in code with nullptr.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 25 11:33:00 PDT 2018
Author: ctopper
Date: Tue Sep 25 11:33:00 2018
New Revision: 343003
URL: http://llvm.org/viewvc/llvm-project?rev=343003&view=rev
Log:
[MC] Replace NULL constant in code with nullptr.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=343003&r1=343002&r2=343003&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Tue Sep 25 11:33:00 2018
@@ -1327,7 +1327,7 @@ AsmParser::applyModifierToExpr(const MCE
/// 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') &&
More information about the llvm-commits
mailing list