mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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:
parent
cd9ede9fc0
commit
6579eea90d
@ -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.
|
||||
|
@ -3,4 +3,4 @@
|
||||
|
||||
.endr
|
||||
|
||||
// CHECK: unexpected '.endr' directive, no current .rept
|
||||
// CHECK: unmatched '.endr' directive
|
||||
|
Loading…
x
Reference in New Issue
Block a user