Explorar el Código

Check has_definition() in tree_ir.DebugInfoInstruction.generate_python_def

jonathanvdc hace 8 años
padre
commit
6419734131
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

@@ -537,7 +537,7 @@ class DebugInfoInstruction(Instruction):
 
     def generate_python_def(self, code_generator):
         """Generates Python code for this instruction."""
-        if self.has_result_temporary():
+        if self.has_definition():
             code_generator.source_map_builder.push_debug_info(self.debug_info)
             code_generator.append_move_definition(self, self.value)
             code_generator.source_map_builder.pop_debug_info()