diff --git a/src/ccall.cpp b/src/ccall.cpp index 042ee143b65c57..66c58a0e26ca0c 100644 --- a/src/ccall.cpp +++ b/src/ccall.cpp @@ -849,7 +849,6 @@ static jl_cgval_t emit_llvmcall(jl_codectx_t &ctx, jl_value_t **args, size_t nar } if (at == NULL) at = try_eval(ctx, args[3], "error statically evaluating llvmcall argument tuple"); - int i = 1; if (jl_is_tuple(ir)) { // if the IR is a tuple, we expect (declarations, ir) if (jl_nfields(ir) != 2) @@ -908,7 +907,7 @@ static jl_cgval_t emit_llvmcall(jl_codectx_t &ctx, jl_value_t **args, size_t nar std::string ir_name; while(true) { std::stringstream name; - name << (ctx.f->getName().str()) << "u" << i++; + name << (ctx.f->getName().str()) << "u" << globalUnique++; ir_name = name.str(); if (jl_Module->getFunction(ir_name) == NULL) break;