Skip to content

Commit 0a38850

Browse files
tekknolagik0kubun
authored andcommitted
Only map pointers in tests
We want to otherwise see real pointers in print output.
1 parent 52fe40f commit 0a38850

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zjit/src/hir.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,9 @@ struct FunctionPrinter<'a> {
422422
impl<'a> FunctionPrinter<'a> {
423423
fn without_snapshot(fun: &'a Function) -> Self {
424424
let mut ptr_map = PtrPrintMap::identity();
425-
ptr_map.map_ptrs = true;
425+
if cfg!(test) {
426+
ptr_map.map_ptrs = true;
427+
}
426428
Self { fun, display_snapshot: false, ptr_map }
427429
}
428430

0 commit comments

Comments
 (0)