Prechádzať zdrojové kódy

Change the default has_result_temporary() implementation in tree_ir

jonathanvdc 8 rokov pred
rodič
commit
9767f33c57
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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.