瀏覽代碼

Make declare-local values dependent on the root node

jonathanvdc 8 年之前
父節點
當前提交
313cbac9e8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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."""