Skip to content

Commit cb47b01

Browse files
authored
codegen: change tbaa of ptr_phi to tbaa_value (#53655)
Fixes #53612
1 parent c4ab0d4 commit cb47b01

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
@@ -5634,7 +5634,7 @@ static void emit_phinode_assign(jl_codectx_t &ctx, ssize_t idx, jl_value_t *r)
56345634
Value *ptr = ctx.builder.CreateSelect(isboxed,
56355635
maybe_bitcast(ctx, decay_derived(ctx, ptr_phi), getInt8PtrTy(ctx.builder.getContext())),
56365636
maybe_bitcast(ctx, decay_derived(ctx, phi), getInt8PtrTy(ctx.builder.getContext())));
5637-
jl_cgval_t val = mark_julia_slot(ptr, phiType, Tindex_phi, ctx.tbaa().tbaa_stack); // XXX: this TBAA is wrong for ptr_phi
5637+
jl_cgval_t val = mark_julia_slot(ptr, phiType, Tindex_phi, best_tbaa(ctx.tbaa(), phiType));
56385638
val.Vboxed = ptr_phi;
56395639
ctx.PhiNodes.push_back(std::make_tuple(val, BB, dest, ptr_phi, r));
56405640
ctx.SAvalues[idx] = val;

0 commit comments

Comments
 (0)