Explorar o código

Change the default has_result_temporary() implementation in tree_ir

jonathanvdc %!s(int64=8) %!d(string=hai) anos
pai
achega
9767f33c57
Modificáronse 1 ficheiros con 1 adicións e 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.