Skip to content

Commit 74f4d8b

Browse files
tekknolagik0kubun
authored andcommitted
Display Snapshot's FrameState using Display (Shopify/zjit#111)
This makes the output a little nicer when doing --zjit-dump-hir=all
1 parent 490a6d8 commit 74f4d8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zjit/src/hir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ impl<'a> std::fmt::Display for InsnPrinter<'a> {
486486
}
487487
Ok(())
488488
},
489+
Insn::Snapshot { state } => write!(f, "Snapshot {}", state),
489490
insn => { write!(f, "{insn:?}") }
490491
}
491492
}

0 commit comments

Comments
 (0)