From 0a38850524bec6877fc197cf24abde4233f10b8d Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Thu, 27 Mar 2025 12:58:35 -0400 Subject: Only map pointers in tests We want to otherwise see real pointers in print output. --- zjit/src/hir.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index a1c84138a6..1cbfb67488 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -422,7 +422,9 @@ struct FunctionPrinter<'a> { impl<'a> FunctionPrinter<'a> { fn without_snapshot(fun: &'a Function) -> Self { let mut ptr_map = PtrPrintMap::identity(); - ptr_map.map_ptrs = true; + if cfg!(test) { + ptr_map.map_ptrs = true; + } Self { fun, display_snapshot: false, ptr_map } } -- cgit v1.2.3