summaryrefslogtreecommitdiff
path: root/zjit/src
diff options
Diffstat (limited to 'zjit/src')
-rw-r--r--zjit/src/hir.rs4
1 files changed, 3 insertions, 1 deletions
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 }
}