Skip to content

Commit 94f13ef

Browse files
committed
Bump for rustc changes
1 parent 50f3796 commit 94f13ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
530530
if tcx.is_foreign_item(def_id) {
531531
throw_unsup_format!("foreign thread-local statics are not supported");
532532
}
533-
let allocation = interpret::get_static(*tcx, def_id)?;
533+
let allocation = tcx.eval_static_initializer(def_id)?;
534534
// Create a fresh allocation with this content.
535535
let new_alloc_id = this.memory.allocate_with(allocation.clone(), MiriMemoryKind::Tls.into()).alloc_id;
536536
this.machine.threads.set_thread_local_alloc_id(def_id, new_alloc_id);

0 commit comments

Comments
 (0)