From 95ae09afdedcb8de3d20307c7ee924079d12c68a Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 23 May 2011 20:36:04 +0000 Subject: [PATCH] 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 --- lib/MC/MCParser/AsmParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 46e01c55351..b89efd98649 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -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 Split = Identifier.split('@');