@@ -4141,7 +4141,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
4141
4141
size_t fsz1 = jl_field_size (sty, idx0) - 1 ;
4142
4142
Value *ptindex = emit_ptrgep (ctx, addr, fsz1);
4143
4143
setNameWithField (ctx.emission_context , ptindex, get_objname, sty, idx0, Twine (" .tindex_ptr" ));
4144
- return union_store (ctx, addr, ptindex, rhs, cmp, jfty, tbaa, ctx .tbaa (). tbaa_unionselbyte ,
4144
+ return union_store (ctx, addr, ptindex, rhs, cmp, jfty, tbaa, strct .tbaa ,
4145
4145
Order, FailOrder,
4146
4146
needlock, issetfield, isreplacefield, isswapfield, ismodifyfield, issetfieldonce,
4147
4147
modifyop, fname);
@@ -4409,7 +4409,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
4409
4409
undef_derived_strct (ctx, strct, sty, strctinfo.tbaa );
4410
4410
for (size_t i = nargs; i < nf; i++) {
4411
4411
if (!jl_field_isptr (sty, i) && jl_is_uniontype (jl_field_type (sty, i))) {
4412
- jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, ctx .tbaa (). tbaa_unionselbyte );
4412
+ jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, strctinfo .tbaa );
4413
4413
ai.decorateInst (ctx.builder .CreateAlignedStore (
4414
4414
ConstantInt::get (getInt8Ty (ctx.builder .getContext ()), 0 ),
4415
4415
emit_ptrgep (ctx, strct, jl_field_offset (sty, i) + jl_field_size (sty, i) - 1 ),
0 commit comments