Bump for rustc changes
This commit is contained in:
parent
50f3796597
commit
94f13efefd
1 changed files with 1 additions and 1 deletions
|
|
@ -530,7 +530,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
if tcx.is_foreign_item(def_id) {
|
||||
throw_unsup_format!("foreign thread-local statics are not supported");
|
||||
}
|
||||
let allocation = interpret::get_static(*tcx, def_id)?;
|
||||
let allocation = tcx.eval_static_initializer(def_id)?;
|
||||
// Create a fresh allocation with this content.
|
||||
let new_alloc_id = this.memory.allocate_with(allocation.clone(), MiriMemoryKind::Tls.into()).alloc_id;
|
||||
this.machine.threads.set_thread_local_alloc_id(def_id, new_alloc_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue