[llvm] [TableGen] Use PrintFatalError in ParseTreePattern for proper error handling of llvm-tblgen (PR #161417)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 05:39:53 PDT 2025


================
@@ -19,21 +19,21 @@ def INSTR_BAR : Instruction {
 }
 
 #ifdef ERROR1
-// ERROR1: [[@LINE+1]]:1: error: {{.*}} Invalid number of type casts!
+// ERROR1: error: Invalid number of type casts!
----------------
arsenm wrote:

This looks like a regression, the test no longer prints a line number?

https://github.com/llvm/llvm-project/pull/161417


More information about the llvm-commits mailing list