Skip to content

Commit

Permalink
fix InterConditional edge case, update to JuliaLang/julia#42434
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Oct 6, 2021
1 parent cecf599 commit 6880b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cthulhu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ function codeinst_rt(code::CodeInstance)
rettype_const = code.rettype_const
if isa(rettype_const, Vector{Any}) && !(Vector{Any} <: rettype)
return Core.PartialStruct(rettype, rettype_const)
elseif rettype <: Core.OpaqueClosure && isa(rettype_const, Core.PartialOpaque)
elseif isa(rettype_const, Core.PartialOpaque) && rettype <: Core.OpaqueClosure
return rettype_const
elseif isa(rettype_const, Core.InterConditional)
elseif isa(rettype_const, Core.InterConditional) && !(Core.InterConditional <: rettype)
return rettype_const
else
return Const(rettype_const)
Expand Down

0 comments on commit 6880b9e

Please sign in to comment.