Explorar el Código

Change the default has_result_temporary() implementation in tree_ir

jonathanvdc hace 8 años
padre
commit
9767f33c57
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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):
         """Tells if this instruction stores its result in a temporary."""
-        return True
+        return self.has_result()
 
     def generate_python_def(self, code_generator):
         """Generates a Python statement that executes this instruction.