[llvm-commits] [llvm] r123857 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Jim Grosbach
grosbach at apple.com
Wed Jan 19 15:06:07 PST 2011
Author: grosbach
Date: Wed Jan 19 17:06:07 2011
New Revision: 123857
URL: http://llvm.org/viewvc/llvm-project?rev=123857&view=rev
Log:
Make sure to propogate the error code when we fail to parse a modifier.
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=123857&r1=123856&r2=123857&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Wed Jan 19 17:06:07 2011
@@ -523,7 +523,7 @@
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 + "'");
}
}
More information about the llvm-commits
mailing list