Skip to content

Commit

Permalink
Emit compilerbarrier as identity in codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Aug 27, 2023
1 parent 5f7d950 commit 25cf427
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4203,6 +4203,12 @@ static bool emit_builtin_call(jl_codectx_t &ctx, jl_cgval_t *ret, jl_value_t *f,
return true;
}

else if (f == jl_builtin_compilerbarrier && (nargs == 2)) {
emit_typecheck(ctx, argv[1], (jl_value_t*)jl_symbol_type, "compilerbarrier");
*ret = argv[2];
return true;
}

return false;
}

Expand Down

0 comments on commit 25cf427

Please sign in to comment.