[clang] [cfi] Enable -fsanitize-annotate-debug-info functionality for CFI checks (PR #139809)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 17:02:10 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: {{.*}})
----------------
fmayer wrote:

is this needed? how can there be a prefix for `<stdin>`?

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


More information about the cfe-commits mailing list