mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
TableGen: AsmMatcher diagnostics preference detail.
Don't override a custom diagnostic w/ a generic InvalidOperand, all else being equal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159238 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
494f8c6cfa
commit
ef970c1091
@ -2663,7 +2663,9 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
||||
OS << " if (!HadMatchOtherThanPredicate &&\n";
|
||||
OS << " (it == MnemonicRange.first || ErrorInfo <= i+1)) {\n";
|
||||
OS << " ErrorInfo = i+1;\n";
|
||||
OS << " RetCode = Diag;\n";
|
||||
OS << " // InvalidOperand is the default. Prefer specificity.\n";
|
||||
OS << " if (Diag != Match_InvalidOperand)\n";
|
||||
OS << " RetCode = Diag;\n";
|
||||
OS << " }\n";
|
||||
OS << " // Otherwise, just reject this instance of the mnemonic.\n";
|
||||
OS << " OperandsValid = false;\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user