aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
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
commit6579eea90dfeb7540e37307cc30c8677759c5e4d (patch)
tree4a898ee1b1d23e95687fb28013a1b2a074da267a /lib/MC
parentcd9ede9fc00be3f13e6f450b63419ed80f225d48 (diff)
downloadexternal_llvm-6579eea90dfeb7540e37307cc30c8677759c5e4d.zip
external_llvm-6579eea90dfeb7540e37307cc30c8677759c5e4d.tar.gz
external_llvm-6579eea90dfeb7540e37307cc30c8677759c5e4d.tar.bz2
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 0a09aeb..ca338ab 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.