Explorar o código

Fixed syntax error.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
3bbf28d852
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/liveness.py

+ 3 - 2
src/liveness.py

@@ -17,8 +17,9 @@ def is_reg_dead_after(reg, block, index, known_jump_targets=[]):
     if reg in RESERVED_USE and block[-1].is_command('jal') \
             and block[-1][0] not in known_jump_targets:
         if block.verbose:
-            block[].set_inline_comment('Cannot be removed due to "jal"')
-        print 'Found conclicting jump with %s:' % reg, block[-1]
+            block[index].set_inline_comment(
+                    'Register %s cannot be removed due to "jal %s"'
+                    % (reg, block[-1][0]))
         return False
 
     if index < len(block) - 1: