[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

Usama Hameed via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 9 15:00:41 PDT 2025


================
@@ -68,9 +68,9 @@ double f1(int b, int i) {
 
 //.
 // CHECK-TRAP: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C11, file: [[META1:![0-9]+]], isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
-// CHECK-TRAP: [[META1]] = !DIFile(filename: "<stdin>", directory: {{.*}})
+// CHECK-TRAP: [[META1]] = !DIFile(filename: "{{.*}}<stdin>", directory: {{.*}})
----------------
usama54321 wrote:

Is this needed?

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


More information about the cfe-commits mailing list