Skip to content

Commit

Permalink
Flip condition so it's correct
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Jun 7, 2024
1 parent 83ef585 commit 255ef33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6546,8 +6546,8 @@ static jl_cgval_t emit_expr(jl_codectx_t &ctx, jl_value_t *expr, ssize_t ssaidx_
if (F) {
jl_cgval_t jlcall_ptr = mark_julia_type(ctx, F, false, jl_voidpointer_type);
jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA(ctx, ctx.tbaa().tbaa_gcframe);
bool toplevel = !(ctx.linfo && jl_is_method(ctx.linfo->def.method));
Instruction *I = (!toplevel) ? cast<Instruction>(ctx.world_age_at_entry) :
bool not_toplevel = (ctx.linfo && jl_is_method(ctx.linfo->def.method));
Instruction *I = not_toplevel ? cast<Instruction>(ctx.world_age_at_entry) :
ctx.builder.CreateAlignedLoad(ctx.types().T_size, get_tls_world_age_field(ctx), ctx.types().alignof_ptr);
jl_cgval_t world_age = mark_julia_type(ctx, ai.decorateInst(I), false, jl_long_type);
jl_cgval_t fptr;
Expand Down

0 comments on commit 255ef33

Please sign in to comment.