summaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorpgurd <pgurd@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-19 20:23:43 +0000
committerpgurd <pgurd@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-19 20:23:43 +0000
commitfe25d28904bdefbbdea60e0effcb4f7e2123277b (patch)
tree4a898ee1b1d23e95687fb28013a1b2a074da267a /lib/MC
parent72e10d405dc3e6f035a4824cb78c0af1e2a0c8a6 (diff)
Enhance unmatched '.endr' directive error message in assembler.
The directive can be matched with directives other than '.rept' Patch by Andy Zhang! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 0a09aebbfec..ca338abed4e 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/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.