cl-interpret: Try having separate globals again?

This commit is contained in:
2025-03-11 23:33:49 -05:00
parent fdf076c272
commit dcdb100a8a
3 changed files with 65 additions and 48 deletions

View File

@@ -822,8 +822,8 @@ impl Interpret for AddrOf {
},
_ => {
let value = expr.interpret(env)?;
let temp = env.insert_temporary(value)?;
Ok(ConValue::Ref(temp))
let temp = env.stack_alloc(value)?;
Ok(ConValue::Ref(env::Place::Local(temp)))
}
}
}