mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Make sure to propogate the error code when we fail to parse a modifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dacde944bd
commit
4121e8a0bd
@ -523,7 +523,7 @@ bool AsmParser::ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) {
|
||||
Variant = MCSymbolRefExpr::getVariantKindForName(Split.second);
|
||||
if (Variant == MCSymbolRefExpr::VK_Invalid) {
|
||||
Variant = MCSymbolRefExpr::VK_None;
|
||||
TokError("invalid variant '" + Split.second + "'");
|
||||
return TokError("invalid variant '" + Split.second + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user