Browse Source

Fix bug in the dominator tree construction algorithm

jonathanvdc 8 years ago
parent
commit
9bb45df0f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/modelverse_jit/cfg_dominators.py

+ 1 - 1
kernel/modelverse_jit/cfg_dominators.py

@@ -74,7 +74,7 @@ def get_immediate_dominators(entry_point):
                 continue
 
             new_idom = None
-            for pred in predecessor_map[entry_point]:
+            for pred in predecessor_map[block]:
                 if pred not in postorder_nums:
                     continue