aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2017-11-21 12:26:06 +0000
committerSander de Smalen <sander.desmalen@arm.com>2017-11-21 12:26:06 +0000
commitf475eed48d2454b61d94f8da38c361b8ad7f6c73 (patch)
tree03235e19fa011233ac9827cb0baf79bbed08f1eb /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parente1490afa4c9162d08f4fc550165470d781a5ffdc (diff)
downloadllvm-f475eed48d2454b61d94f8da38c361b8ad7f6c73.zip
llvm-f475eed48d2454b61d94f8da38c361b8ad7f6c73.tar.gz
llvm-f475eed48d2454b61d94f8da38c361b8ad7f6c73.tar.bz2
[TableGen] AsmMatcher: Fix bug with reported diagnostic for operand.
Summary: The generated diagnostic by the AsmMatcher isn't always applicable to the AsmOperand. This is because the code will only update the diagnostic if it is more specific than the previous diagnostic. However, when having validated operands and 'moved on' to a next operand (for some instruction/alias for which all previous operands are valid), if the diagnostic is InvalidOperand, than that should be set as the diagnostic, not the more specific message about a previous operand for some other instruction/alias candidate. Reviewers: craig.topper, olista01, rengolin, stoklund Reviewed By: olista01 Subscribers: javed.absar, llvm-commits Differential Revision: https://reviews.llvm.org/D40011 llvm-svn: 318759
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions