Propagate error correctly in the MC Asm parser for leading '$' expressions.
authorJim Grosbach <grosbach@apple.com>
Mon, 23 May 2011 20:36:04 +0000 (20:36 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 23 May 2011 20:36:04 +0000 (20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131918 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCParser/AsmParser.cpp

index 46e01c553519efdca725f24b7845c08ab6a3acf5..b89efd98649647d242b4c07d106026b04f0a3718 100644 (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('@');