Skip to content

Commit

Permalink
Avoid unused function warning
Browse files Browse the repository at this point in the history
One more warning to fix: writeRecoveryFile is unconditionally defined but
used only if JL_DEBUG_BUILD is defined.  The fix is obvious.
  • Loading branch information
drepper committed Dec 17, 2015
1 parent 1e7e967 commit 6137d6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ static void jl_finalize_module(Module *m)
}

#if defined(USE_MCJIT) || defined(USE_ORCJIT)
#ifdef JL_DEBUG_BUILD
static void writeRecoveryFile(llvm::Module *mod)
{
std::error_code err;
Expand All @@ -949,6 +950,7 @@ static void writeRecoveryFile(llvm::Module *mod)
OS.flush();
abort();
}
#endif

static uint64_t getAddressForOrCompileFunction(llvm::Function *llvmf)
{
Expand Down

0 comments on commit 6137d6c

Please sign in to comment.