codegen: fix OperandRef subtype handling

This commit is contained in:
lcnr
2023-06-09 13:13:31 +02:00
parent be33ad8848
commit 46af169ec5
6 changed files with 101 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
}
LocalRef::PendingOperand => {
let operand = self.codegen_rvalue_operand(bx, rvalue);
self.locals[index] = LocalRef::Operand(operand);
self.overwrite_local(index, LocalRef::Operand(operand));
self.debug_introduce_local(bx, index);
}
LocalRef::Operand(op) => {