From cf74fdd99ca4d66a6f516b9f7ec8a433fde2fbc7 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Fri, 18 Oct 2024 16:52:54 +0200 Subject: [PATCH] adding loops and seeing they totally not work --- lang/src/son.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index 8573168..9544868 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -1509,12 +1509,12 @@ impl Codegen { if bres.store != scope.store { let (to_store, from_store) = (bres.store.unwrap(), scope.store.unwrap()); self.ci.nodes.unlock(to_store); - bres.store = Some( + self.ci.scope.store = Some( self.ci .nodes .new_node(ty::Id::VOID, Kind::Phi, [node, from_store, to_store]), ); - self.ci.nodes.lock(bres.store.unwrap()); + self.ci.nodes.lock(self.ci.scope.store.unwrap()); } self.ci.nodes.unlock_remove_scope(&scope);