Explorar o código

Make declare-local values dependent on the root node

jonathanvdc %!s(int64=8) %!d(string=hai) anos
pai
achega
313cbac9e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      kernel/modelverse_jit/cfg_ir.py

+ 1 - 1
kernel/modelverse_jit/cfg_ir.py

@@ -432,7 +432,7 @@ class DeclareLocal(Value):
 
     def get_dependencies(self):
         """Gets all definitions and instructions on which this instruction depends."""
-        return []
+        return [self.root_node]
 
     def has_value(self):
         """Tells if this value produces a result that is not None."""