Propagate error correctly in the MC Asm parser for leading '$' expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-05-23 20:36:04 +00:00
parent f8928c07e7
commit 95ae09afde

View File

@ -553,7 +553,7 @@ bool AsmParser::ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) {
StringRef Identifier;
if (ParseIdentifier(Identifier))
return false;
return true;
// This is a symbol reference.
std::pair<StringRef, StringRef> Split = Identifier.split('@');