diff --git a/src/codegen.cpp b/src/codegen.cpp index f1e89e760aa1c..dd3376c334a37 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -6679,6 +6679,7 @@ static jl_cgval_t emit_cfunction(jl_codectx_t &ctx, jl_value_t *output_type, con if (ctx.emission_context.TargetTriple.isAArch64() || ctx.emission_context.TargetTriple.isARM() || ctx.emission_context.TargetTriple.isPPC64()) { if (nest) { emit_error(ctx, "cfunction: closures are not supported on this platform"); + JL_GC_POP(); return jl_cgval_t(); } }