summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorPreston Gurd <preston.gurd@intel.com>2012-09-19 20:23:43 +0000
committerPreston Gurd <preston.gurd@intel.com>2012-09-19 20:23:43 +0000
commiteb3ebf16abbbc469987b2e1306df6fe532187af2 (patch)
tree4ef993dc4030ea55fbc5fc6585d9c35d812209d0 /llvm/lib
parent132f8f6959c718c41522753ea288b0243feab2b0 (diff)
downloadbcm5719-llvm-eb3ebf16abbbc469987b2e1306df6fe532187af2.tar.gz
bcm5719-llvm-eb3ebf16abbbc469987b2e1306df6fe532187af2.zip
Enhance unmatched '.endr' directive error message in assembler.
The directive can be matched with directives other than '.rept' Patch by Andy Zhang! llvm-svn: 164245
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 0a09aebbfec..ca338abed4e 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -3404,7 +3404,7 @@ bool AsmParser::ParseDirectiveIrpc(SMLoc DirectiveLoc) {
bool AsmParser::ParseDirectiveEndr(SMLoc DirectiveLoc) {
if (ActiveMacros.empty())
- return TokError("unexpected '.endr' directive, no current .rept");
+ return TokError("unmatched '.endr' directive");
// The only .repl that should get here are the ones created by
// InstantiateMacroLikeBody.
OpenPOWER on IntegriCloud