@@ -3545,8 +3545,11 @@ static Value *boxed(jl_codectx_t &ctx, const jl_cgval_t &vinfo, bool is_promotab
35453545 originalAlloca->eraseFromParent ();
35463546 ctx.builder .restoreIP (IP);
35473547 } else {
3548+ auto arg_typename = [&] JL_NOTSAFEPOINT {
3549+ return jl_symbol_name (((jl_datatype_t *)(jt))->name ->name );
3550+ };
35483551 box = emit_allocobj (ctx, (jl_datatype_t *)jt);
3549- setName (ctx.emission_context , box, " box" );
3552+ setName (ctx.emission_context , box, " box" + StringRef ( " :: " ) + arg_typename () );
35503553 init_bits_cgval (ctx, box, vinfo, jl_is_mutable (jt) ? ctx.tbaa ().tbaa_mutab : ctx.tbaa ().tbaa_immut );
35513554 }
35523555 }
@@ -3879,6 +3882,9 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
38793882 assert (jl_is_datatype (ty));
38803883 assert (jl_is_concrete_type (ty));
38813884 jl_datatype_t *sty = (jl_datatype_t *)ty;
3885+ auto arg_typename = [&] JL_NOTSAFEPOINT {
3886+ return jl_symbol_name ((sty)->name ->name );
3887+ };
38823888 size_t nf = jl_datatype_nfields (sty);
38833889 if (nf > 0 || sty->name ->mutabl ) {
38843890 if (deserves_stack (ty)) {
@@ -3910,7 +3916,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
39103916 }
39113917 else {
39123918 strct = emit_static_alloca (ctx, lt);
3913- setName (ctx.emission_context , strct, " newstruct " );
3919+ setName (ctx.emission_context , strct, " new " + StringRef ( " :: " ) + arg_typename () );
39143920 if (tracked.count )
39153921 undef_derived_strct (ctx, strct, sty, ctx.tbaa ().tbaa_stack );
39163922 }
@@ -4080,7 +4086,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
40804086 }
40814087 }
40824088 Value *strct = emit_allocobj (ctx, sty);
4083- setName (ctx.emission_context , strct, " newstruct " );
4089+ setName (ctx.emission_context , strct, " new " + StringRef ( " :: " ) + arg_typename () );
40844090 jl_cgval_t strctinfo = mark_julia_type (ctx, strct, true , ty);
40854091 strct = decay_derived (ctx, strct);
40864092 undef_derived_strct (ctx, strct, sty, strctinfo.tbaa );
0 commit comments