mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
MC: fix possible NULL pointer dereference
Avoid NULL pointer scenario found via clang's static analyzer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2005,7 +2005,7 @@ bool AsmParser::parseMacroArguments(const MCAsmMacro *M,
|
|||||||
if (FAI >= NParameters) {
|
if (FAI >= NParameters) {
|
||||||
Error(IDLoc,
|
Error(IDLoc,
|
||||||
"parameter named '" + FA.Name + "' does not exist for macro '" +
|
"parameter named '" + FA.Name + "' does not exist for macro '" +
|
||||||
M->Name + "'");
|
(M ? M->Name : "<unamed>") + "'");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
PI = FAI;
|
PI = FAI;
|
||||||
|
Reference in New Issue
Block a user