diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-01-19 23:06:07 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-01-19 23:06:07 +0000 |
commit | 4121e8a0bd56a63e2d5186d99b62c7bd6afc9b5d (patch) | |
tree | f379f1756b8ac5f468eba0f57b82923eb8e7f84e /lib | |
parent | dacde944bd585d512aabc4f3fa56440642b03a54 (diff) | |
download | llvm-4121e8a0bd56a63e2d5186d99b62c7bd6afc9b5d.tar.gz llvm-4121e8a0bd56a63e2d5186d99b62c7bd6afc9b5d.tar.bz2 llvm-4121e8a0bd56a63e2d5186d99b62c7bd6afc9b5d.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 9105ad5146..0b0df0285d 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -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 + "'"); } } |