Skip to content

Commit 6dd700f

Browse files
committed
Changed not_undef to check_init in foreign_items.rs
Due to changes from upstream, a commit using not_undef was inserted, which had to be updated to use check_init. related issue #71193
1 parent 6282e92 commit 6dd700f

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
@@ -200,7 +200,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
200200
// Miri-specific extern functions
201201
"miri_static_root" => {
202202
let &[ptr] = check_arg_count(args)?;
203-
let ptr = this.read_scalar(ptr)?.not_undef()?;
203+
let ptr = this.read_scalar(ptr)?.check_init()?;
204204
let ptr = this.force_ptr(ptr)?;
205205
if ptr.offset != Size::ZERO {
206206
throw_unsup_format!("pointer passed to miri_static_root must point to beginning of an allocated block");

0 commit comments

Comments
 (0)