fix(ir): Adopt to toolchain version
This commit is contained in:
+3
-1
@@ -566,7 +566,8 @@ impl Generator {
|
||||
instrs.push(IRInstr::Move(temp_var, MoveRValue::Var(right_var)));
|
||||
right_var = temp_var;
|
||||
}
|
||||
if !op.is_logical() && let Some((true_exit, false_exit)) = parent_exit {
|
||||
if !op.is_logical() {
|
||||
if let Some((true_exit, false_exit)) = parent_exit {
|
||||
let final_exit = self.request_label();
|
||||
instrs.push(IRInstr::Label(true_exit));
|
||||
instrs.push(IRInstr::Move(dest_var, MoveRValue::ConstInt(1)));
|
||||
@@ -577,6 +578,7 @@ impl Generator {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if op.is_logical() {
|
||||
return Some((instrs, Some(dest_var)));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user