Преглед на файлове

Fix bug in the dominator tree construction algorithm

jonathanvdc преди 8 години
родител
ревизия
9bb45df0f6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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