This commit is contained in:
Ralf Jung 2017-07-13 09:10:50 -07:00
parent 62334acd66
commit d02e7f0da8

View file

@ -200,7 +200,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
Ok(Value::ByRef(ptr, aligned))
}
Lvalue::Local { frame, local } => {
Ok(self.stack[frame].get_local(local)?)
self.stack[frame].get_local(local)
}
Lvalue::Global(cid) => {
Ok(self.globals.get(&cid).expect("global not cached").value)