Skip to main content

luaur_code_gen/methods/
ir_function_materialize_restore_location.rs

1use crate::records::ir_function::IrFunction;
2
3impl IrFunction {
4    pub fn materialize_restore_location(&mut self, inst_idx: u32) {
5        assert!((inst_idx as usize) < self.value_restore_ops.len());
6        assert!(self.value_restore_ops[inst_idx as usize].lazy);
7
8        self.value_restore_ops[inst_idx as usize].lazy = false;
9    }
10}