1 parent 0c919ab commit 942dadcCopy full SHA for 942dadc
1 file changed
rust_src/ast_to_tacky.rs
@@ -131,7 +131,7 @@ impl AstToTacky {
131
let mut true_instrs: InstructionVec = Vec::new();
132
let true_val = self.convert_expr(true_expr, &mut true_instrs);
133
let mut false_instrs: InstructionVec = Vec::new();
134
- let false_val = self.convert_expr(false_expr, &mut true_instrs);
+ let false_val = self.convert_expr(false_expr, &mut false_instrs);
135
// Start instruction construction with condition value and instructions
136
let cond_val = self.convert_expr(cond, instructions);
137
instructions.push(tacky::Instruction::JumpIfZero {
0 commit comments