From 63f2a0dac0e3790e8f5a045e1d44a923bc6a48a9 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Tue, 12 Nov 2024 20:59:12 +0100 Subject: [PATCH] well... --- lang/src/son.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index c9de393e..1c3f02c2 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -3591,7 +3591,7 @@ impl<'a> Codegen<'a> { .zip(bres.vars.iter_mut()) { if self.ci.nodes[scope_var.value()].is_lazy_phi(node) { - if loop_var.value() != scope_var.value() { + if loop_var.value() != scope_var.value() && loop_var.value() != 0 { scope_var.set_value( self.ci.nodes.modify_input(scope_var.value(), 2, loop_var.value()), &mut self.ci.nodes,