don't freeze globals twice
This commit is contained in:
parent
0b632d553e
commit
ca7ae5a3d0
1 changed files with 0 additions and 3 deletions
|
@ -383,9 +383,6 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if let Value::ByRef(ptr) = global_value.data.expect("global should have been initialized") {
|
|
||||||
self.memory.freeze(ptr.alloc_id)?;
|
|
||||||
}
|
|
||||||
assert!(global_value.mutable);
|
assert!(global_value.mutable);
|
||||||
global_value.mutable = false;
|
global_value.mutable = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue