@@ -3625,7 +3625,7 @@ static void emit_write_multibarrier(jl_codectx_t &ctx, Value *parent, Value *agg
36253625
36263626static jl_cgval_t union_store (jl_codectx_t &ctx,
36273627 Value *ptr, Value *ptindex, jl_cgval_t rhs, jl_cgval_t cmp,
3628- jl_value_t *jltype, MDNode *tbaa, MDNode *aliasscope, MDNode * tbaa_tindex,
3628+ jl_value_t *jltype, MDNode *tbaa, MDNode *tbaa_tindex,
36293629 AtomicOrdering Order, AtomicOrdering FailOrder,
36303630 Value *needlock, bool issetfield, bool isreplacefield, bool isswapfield, bool ismodifyfield, bool issetfieldonce,
36313631 const jl_cgval_t *modifyop, const Twine &fname)
@@ -3683,7 +3683,7 @@ static jl_cgval_t union_store(jl_codectx_t &ctx,
36833683 }
36843684 Value *tindex = compute_tindex_unboxed (ctx, rhs_union, jltype);
36853685 tindex = ctx.builder .CreateNUWSub (tindex, ConstantInt::get (getInt8Ty (ctx.builder .getContext ()), 1 ));
3686- jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, ctx. tbaa (). tbaa_unionselbyte );
3686+ jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, tbaa_tindex );
36873687 ai.decorateInst (ctx.builder .CreateAlignedStore (tindex, ptindex, Align (1 )));
36883688 // copy data
36893689 if (!rhs.isghost ) {
@@ -3739,7 +3739,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
37393739 emit_bitcast (ctx, addr, getInt8PtrTy (ctx.builder .getContext ())),
37403740 ConstantInt::get (ctx.types ().T_size , fsz1));
37413741 setNameWithField (ctx.emission_context , ptindex, get_objname, sty, idx0, Twine (" .tindex_ptr" ));
3742- return union_store (ctx, addr, ptindex, rhs, cmp, jfty, tbaa, nullptr , ctx.tbaa ().tbaa_unionselbyte ,
3742+ return union_store (ctx, addr, ptindex, rhs, cmp, jfty, tbaa, ctx.tbaa ().tbaa_unionselbyte ,
37433743 Order, FailOrder,
37443744 needlock, issetfield, isreplacefield, isswapfield, ismodifyfield, issetfieldonce,
37453745 modifyop, fname);
0 commit comments