Skip to content

Commit 255ef33

Browse files
committed
Flip condition so it's correct
1 parent 83ef585 commit 255ef33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6546,8 +6546,8 @@ static jl_cgval_t emit_expr(jl_codectx_t &ctx, jl_value_t *expr, ssize_t ssaidx_
65466546
if (F) {
65476547
jl_cgval_t jlcall_ptr = mark_julia_type(ctx, F, false, jl_voidpointer_type);
65486548
jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA(ctx, ctx.tbaa().tbaa_gcframe);
6549-
bool toplevel = !(ctx.linfo && jl_is_method(ctx.linfo->def.method));
6550-
Instruction *I = (!toplevel) ? cast<Instruction>(ctx.world_age_at_entry) :
6549+
bool not_toplevel = (ctx.linfo && jl_is_method(ctx.linfo->def.method));
6550+
Instruction *I = not_toplevel ? cast<Instruction>(ctx.world_age_at_entry) :
65516551
ctx.builder.CreateAlignedLoad(ctx.types().T_size, get_tls_world_age_field(ctx), ctx.types().alignof_ptr);
65526552
jl_cgval_t world_age = mark_julia_type(ctx, ai.decorateInst(I), false, jl_long_type);
65536553
jl_cgval_t fptr;

0 commit comments

Comments
 (0)