1
Fork 0

don't freeze globals twice

This commit is contained in:
Oliver Schneider 2016-11-19 08:33:13 +01:00 committed by GitHub
parent 0b632d553e
commit ca7ae5a3d0

View file

@ -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);
global_value.mutable = false;
} else {