Skip to content

Commit c4bdb4b

Browse files
committed
More refactoring
1 parent 62362ad commit c4bdb4b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/copyable_task.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,13 +1033,7 @@ function derive_copyable_task_ir(ir::BBCode)::Tuple{BBCode,Tuple,Vector{Any}}
10331033

10341034
# Derive TapedTask for this statement.
10351035
(callable, callable_args) = if Meta.isexpr(stmt, :invoke)
1036-
@static if VERSION >= v"1.12-"
1037-
# On Julia 1.12 stmt.args has CodeInstances rather than
1038-
# MethodInstances. We use .def to get the MethodInstances.
1039-
sig = stmt.args[1].def.specTypes
1040-
else
1041-
sig = stmt.args[1].specTypes
1042-
end
1036+
sig = get_mi(stmt.args[1]).specTypes
10431037
v = Any[Any]
10441038
(LazyCallable{sig,callable_ret_type(sig, v)}(), stmt.args[2:end])
10451039
elseif Meta.isexpr(stmt, :call)

0 commit comments

Comments
 (0)