Skip to content

Commit

Permalink
Type fix (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 16, 2024
1 parent 9a0c946 commit f034de4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,9 @@ function nodecayed_phis!(mod::LLVM.Module)
GTy
)
nphi = call!(nb, GTy, gcloaded, LLVM.Value[base_obj, nphi])
if value_type(nphi) != ty
nphi = bitcast!(nb, nphi, ty)
end
end
else
nphi = addrspacecast!(nb, nphi, ty)
Expand Down

0 comments on commit f034de4

Please sign in to comment.