Merge pull request #88 from oli-obk/patch-1

don't freeze globals twice
This commit is contained in:
Scott Olson 2016-11-19 00:10:36 -08:00 committed by GitHub
commit 16fa75c6cf

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 {