[llvm] [TableGen] Fix source location for anonymous records (PR #110935)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 05:23:20 PDT 2024
================
@@ -0,0 +1,16 @@
+// RUN: llvm-tblgen --print-detailed-records %s | FileCheck %s -DFILE=%basename_s
+
+class A<int a> {
+ int Num = a;
+}
+
+// Verify that the location of the anonymous record instantiated
+// for A<10> and A<11> is correct. It should show the line where the
+// anonymous record was instantiated and not the line where the class
+// was defined.
+def y {
+ // CHECK: anonymous_0 |[[FILE]]:[[@LINE+1]]|
----------------
jurahul wrote:
Done
https://github.com/llvm/llvm-project/pull/110935
More information about the llvm-commits
mailing list