Skip to content

Commit d997433

Browse files
gbaraldiDrvi
authored andcommitted
codegen: change tbaa of ptr_phi to tbaa_value (JuliaLang#53655)
Fixes JuliaLang#53612 (cherry picked from commit cb47b01)
1 parent 7defb9d commit d997433

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
@@ -5031,7 +5031,7 @@ static void emit_phinode_assign(jl_codectx_t &ctx, ssize_t idx, jl_value_t *r)
50315031
Value *ptr = ctx.builder.CreateSelect(isboxed,
50325032
maybe_bitcast(ctx, decay_derived(ctx, ptr_phi), getInt8PtrTy(ctx.builder.getContext())),
50335033
maybe_bitcast(ctx, decay_derived(ctx, phi), getInt8PtrTy(ctx.builder.getContext())));
5034-
jl_cgval_t val = mark_julia_slot(ptr, phiType, Tindex_phi, ctx.tbaa().tbaa_stack); // XXX: this TBAA is wrong for ptr_phi
5034+
jl_cgval_t val = mark_julia_slot(ptr, phiType, Tindex_phi, best_tbaa(ctx.tbaa(), phiType));
50355035
val.Vboxed = ptr_phi;
50365036
ctx.PhiNodes.push_back(std::make_tuple(val, BB, dest, ptr_phi, r));
50375037
ctx.SAvalues.at(idx) = val;

0 commit comments

Comments
 (0)