[llvm-branch-commits] [clang] [compiler-rt] [hwasan] Respect strip_path_prefix printing locals (PR #76132)

Florian Mayer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 21 12:26:55 PST 2023


================
@@ -236,8 +237,13 @@ static void PrintStackAllocations(const StackAllocationsRingBuffer *sa,
           Printf("\nPotentially referenced stack objects:\n");
           found_local = true;
         }
-        Printf("  %s in %s %s:%d\n", local.name, local.function_name,
-               local.decl_file, local.decl_line);
+        StackTracePrinter::GetOrInit()->RenderSourceLocation(
+            &location, local.decl_file, local.decl_line, 0,
----------------
fmayer wrote:

nit: /* column= */ 0

other nit: how hard is it to add a test for this?

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


More information about the llvm-branch-commits mailing list