MC: fix possible NULL pointer dereference
Avoid NULL pointer scenario found via clang's static analyzer. llvm-svn: 203745
This commit is contained in:
parent
ac1b1d7bfc
commit
ac58e9fc0b
@ -2005,7 +2005,7 @@ bool AsmParser::parseMacroArguments(const MCAsmMacro *M,
|
||||
if (FAI >= NParameters) {
|
||||
Error(IDLoc,
|
||||
"parameter named '" + FA.Name + "' does not exist for macro '" +
|
||||
M->Name + "'");
|
||||
(M ? M->Name : "<unamed>") + "'");
|
||||
return true;
|
||||
}
|
||||
PI = FAI;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user