Explorar o código

Fix bug in the dominator tree construction algorithm

jonathanvdc %!s(int64=8) %!d(string=hai) anos
pai
achega
9bb45df0f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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