Skip to content

Commit

Permalink
Use EmittedUndefVarErrors Statistic (#44901)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi authored Apr 8, 2022
1 parent 6d78404 commit 8890aea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4028,6 +4028,7 @@ static jl_cgval_t emit_call(jl_codectx_t &ctx, jl_expr_t *ex, jl_value_t *rt)

static void undef_var_error_ifnot(jl_codectx_t &ctx, Value *ok, jl_sym_t *name)
{
++EmittedUndefVarErrors;
BasicBlock *err = BasicBlock::Create(ctx.builder.getContext(), "err", ctx.f);
BasicBlock *ifok = BasicBlock::Create(ctx.builder.getContext(), "ok");
ctx.builder.CreateCondBr(ok, ifok, err);
Expand Down

0 comments on commit 8890aea

Please sign in to comment.