Skip to content

Commit f11a4d2

Browse files
committed
add assertion message
1 parent cc4a929 commit f11a4d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3201,7 +3201,7 @@ impl IseqCall {
32013201

32023202
/// Regenerate a IseqCall with a given callback
32033203
fn regenerate(&self, cb: &mut CodeBlock, callback: impl Fn(&mut Assembler)) {
3204-
cb.with_write_ptr(self.start_addr.get().unwrap(), |cb| {
3204+
cb.with_write_ptr(self.start_addr.get().expect("expected a start address"), |cb| {
32053205
let mut asm = Assembler::new();
32063206
asm.new_block_without_id();
32073207
callback(&mut asm);

0 commit comments

Comments
 (0)