good direction

This commit is contained in:
Jakub Doka 2024-10-18 16:57:00 +02:00
parent cf74fdd99c
commit 89cc611f7a
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -1507,8 +1507,9 @@ impl Codegen {
} }
if bres.store != scope.store { if bres.store != scope.store {
let (to_store, from_store) = (bres.store.unwrap(), scope.store.unwrap()); let (to_store, from_store, prev) =
self.ci.nodes.unlock(to_store); (bres.store.unwrap(), scope.store.unwrap(), self.ci.scope.store.unwrap());
self.ci.nodes.unlock_remove(prev);
self.ci.scope.store = Some( self.ci.scope.store = Some(
self.ci self.ci
.nodes .nodes