Skip to content

Commit

Permalink
fix precompilation on 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub authored Dec 26, 2024
1 parent 9b6dd08 commit 2a89c10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compiler/interface2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ ignore_sig(T) = all(T -> T <: Type, T.parameters)

function edge!(m::IRTools.Meta, edge::Core.MethodInstance)
m.code.edges === nothing && (m.code.edges = Core.MethodInstance[])
push!(m.code.edges, edge)
if m.code.edges isa Core.SimpleVector
m.code.edges = Core.svec(m.code.edges..., edge)
else
push!(m.code.edges, edge)
end
return
end

Expand Down

0 comments on commit 2a89c10

Please sign in to comment.