Skip to content

Commit b319a95

Browse files
authored
Use get_ci_mi in store_backedges (#58394)
This allows `CodeInstance`s with ABI override to pass the check, otherwise they were systematically ignored.
1 parent 2a5cfee commit b319a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/src/typeinfer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ end
749749

750750
# record the backedges
751751
function store_backedges(caller::CodeInstance, edges::SimpleVector)
752-
isa(caller.def.def, Method) || return # don't add backedges to toplevel method instance
752+
isa(get_ci_mi(caller).def, Method) || return # don't add backedges to toplevel method instance
753753

754754
backedges = ForwardToBackedgeIterator(edges)
755755
for (i, (invokesig, item)) in enumerate(backedges)

0 commit comments

Comments
 (0)