@@ -3725,7 +3725,7 @@ static void emit_write_multibarrier(jl_codectx_t &ctx, Value *parent, Value *agg
3725
3725
3726
3726
static jl_cgval_t union_store (jl_codectx_t &ctx,
3727
3727
Value *ptr, Value *ptindex, jl_cgval_t rhs, jl_cgval_t cmp,
3728
- jl_value_t *jltype, MDNode *tbaa, MDNode *aliasscope, MDNode * tbaa_tindex,
3728
+ jl_value_t *jltype, MDNode *tbaa, MDNode *tbaa_tindex,
3729
3729
AtomicOrdering Order, AtomicOrdering FailOrder,
3730
3730
Value *needlock, bool issetfield, bool isreplacefield, bool isswapfield, bool ismodifyfield, bool issetfieldonce,
3731
3731
const jl_cgval_t *modifyop, const Twine &fname)
@@ -3783,7 +3783,7 @@ static jl_cgval_t union_store(jl_codectx_t &ctx,
3783
3783
}
3784
3784
Value *tindex = compute_tindex_unboxed (ctx, rhs_union, jltype);
3785
3785
tindex = ctx.builder .CreateNUWSub (tindex, ConstantInt::get (getInt8Ty (ctx.builder .getContext ()), 1 ));
3786
- jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, ctx. tbaa (). tbaa_unionselbyte );
3786
+ jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, tbaa_tindex );
3787
3787
ai.decorateInst (ctx.builder .CreateAlignedStore (tindex, ptindex, Align (1 )));
3788
3788
// copy data
3789
3789
if (!rhs.isghost ) {
@@ -3839,7 +3839,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
3839
3839
emit_bitcast (ctx, addr, getInt8PtrTy (ctx.builder .getContext ())),
3840
3840
ConstantInt::get (ctx.types ().T_size , fsz1));
3841
3841
setNameWithField (ctx.emission_context , ptindex, get_objname, sty, idx0, Twine (" .tindex_ptr" ));
3842
- return union_store (ctx, addr, ptindex, rhs, cmp, jfty, tbaa, nullptr , ctx.tbaa ().tbaa_unionselbyte ,
3842
+ return union_store (ctx, addr, ptindex, rhs, cmp, jfty, tbaa, ctx.tbaa ().tbaa_unionselbyte ,
3843
3843
Order, FailOrder,
3844
3844
needlock, issetfield, isreplacefield, isswapfield, ismodifyfield, issetfieldonce,
3845
3845
modifyop, fname);
0 commit comments