소스 검색

Fixed syntax error.

Taddeus Kroes 14 년 전
부모
커밋
3bbf28d852
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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: