aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2024-10-07 14:02:28 -0700
committerGitHub <noreply@github.com>2024-10-07 14:02:28 -0700
commit3bace7efe00cbc5caadd2926027f4675845f06a8 (patch)
tree23dd45a491cf77999a09e3dfbf842ab4ca4707e6 /clang/lib/CodeGen/ModuleBuilder.cpp
parentd2457e6d8f62a12b3b74791cfd3f5808168c8a71 (diff)
downloadllvm-3bace7efe00cbc5caadd2926027f4675845f06a8.zip
llvm-3bace7efe00cbc5caadd2926027f4675845f06a8.tar.gz
llvm-3bace7efe00cbc5caadd2926027f4675845f06a8.tar.bz2
[LLVM][AsmParser] Make error reporting of lexer errors more precise (#111077)
When the lexer hits an error during assembly parsing, it just logs the error in the `ErrorMsg` object, and it's possible that error gets overwritten later in by the parser with a more generic error message. This makes some errors reported by the LLVM's asm parser less precise. Address this by not having the parser overwrite the message logged by the lexer by assigning error messages generated by the lexer higher "priority" than those generated by parser and overwriting the error message only if its same or higher priority. Update several Assembler unit test to now check the more precise error messaged reported by the LLVM's AsmParser.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions