Skip to content

Commit 08d89eb

Browse files
authored
codegen: fix ssa order regression from initializing structs (#52311)
1 parent cd4f49a commit 08d89eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cgutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3733,7 +3733,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
37333733
strct = emit_static_alloca(ctx, lt);
37343734
setName(ctx.emission_context, strct, arg_typename);
37353735
if (nargs < nf)
3736-
ctx.builder.CreateStore(ctx.builder.CreateFreeze(UndefValue::get(lt)), strct);
3736+
promotion_point = ctx.builder.CreateStore(ctx.builder.CreateFreeze(UndefValue::get(lt)), strct);
37373737
if (tracked.count)
37383738
undef_derived_strct(ctx, strct, sty, ctx.tbaa().tbaa_stack);
37393739
}

0 commit comments

Comments
 (0)