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
This commit is contained in:
Preston Gurd 2012-09-19 20:23:43 +00:00
parent cd9ede9fc0
commit 6579eea90d
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -3,4 +3,4 @@
.endr
// CHECK: unexpected '.endr' directive, no current .rept
// CHECK: unmatched '.endr' directive