浏览代码

Change the default has_result_temporary() implementation in tree_ir

jonathanvdc 8 年之前
父节点
当前提交
9767f33c57
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/modelverse_jit/tree_ir.py

+ 1 - 1
kernel/modelverse_jit/tree_ir.py

@@ -112,7 +112,7 @@ class Instruction(object):
 
 
     def has_result_temporary(self):
     def has_result_temporary(self):
         """Tells if this instruction stores its result in a temporary."""
         """Tells if this instruction stores its result in a temporary."""
-        return True
+        return self.has_result()
 
 
     def generate_python_def(self, code_generator):
     def generate_python_def(self, code_generator):
         """Generates a Python statement that executes this instruction.
         """Generates a Python statement that executes this instruction.