Skip to content

Commit 707bb6c

Browse files
committed
adjust for get_fn signature change
1 parent 3f74bdc commit 707bb6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
338338
// vtable_ptr: *mut usize,
339339
// ) -> u32
340340
// We abort on panic, so not much is going on here, but we still have to call the closure.
341-
let f = this.read_scalar(args[0])?.to_ptr()?;
341+
let f = this.read_scalar(args[0])?.not_undef()?;
342342
let data = this.read_scalar(args[1])?.not_undef()?;
343343
let f_instance = this.memory().get_fn(f)?.as_instance()?;
344344
this.write_null(dest)?;

0 commit comments

Comments
 (0)