Skip to content

Commit

Permalink
partially revert b64b1b3
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub authored and aviatesk committed Oct 10, 2024
1 parent 9fbb8a9 commit 1b749b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions base/compiler/ssair/inlining.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,13 @@ function late_inline_special_case!(ir::IRCode, idx::Int, stmt::Expr, flag::UInt3
unionall_call = Expr(:foreigncall, QuoteNode(:jl_type_unionall), Any, svec(Any, Any),
0, QuoteNode(:ccall), stmt.args[2], stmt.args[3])
return SomeCase(unionall_call)
elseif f === _typeof_captured_variable
if isa(type, Const)
return SomeCase(quoted(type.val))
elseif isconstType(type)
return SomeCase(quoted(type.parameters[1]))
end
# TODO we may still want to inline the body of `_typeof_captured_variable` here
elseif is_return_type(f)
if isconstType(type)
return SomeCase(quoted(type.parameters[1]))
Expand Down

0 comments on commit 1b749b9

Please sign in to comment.