Skip to content

Commit 02839bd

Browse files
gbaraldiKristofferC
authored andcommitted
codegen: change tbaa of ptr_phi to tbaa_value (#53655)
Fixes #53612 (cherry picked from commit cb47b01)
1 parent 91da115 commit 02839bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5630,7 +5630,7 @@ static void emit_phinode_assign(jl_codectx_t &ctx, ssize_t idx, jl_value_t *r)
56305630
Value *ptr = ctx.builder.CreateSelect(isboxed,
56315631
maybe_bitcast(ctx, decay_derived(ctx, ptr_phi), getInt8PtrTy(ctx.builder.getContext())),
56325632
maybe_bitcast(ctx, decay_derived(ctx, phi), getInt8PtrTy(ctx.builder.getContext())));
5633-
jl_cgval_t val = mark_julia_slot(ptr, phiType, Tindex_phi, ctx.tbaa().tbaa_stack); // XXX: this TBAA is wrong for ptr_phi
5633+
jl_cgval_t val = mark_julia_slot(ptr, phiType, Tindex_phi, best_tbaa(ctx.tbaa(), phiType));
56345634
val.Vboxed = ptr_phi;
56355635
ctx.PhiNodes.push_back(std::make_tuple(val, BB, dest, ptr_phi, r));
56365636
ctx.SAvalues[idx] = val;

0 commit comments

Comments
 (0)