Skip to content

Commit

Permalink
[clang] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  clang/unittests/Interpreter/IncrementalProcessingTest.cpp:39:13:
  error: unused function 'HostSupportsJit' [-Werror,-Wunused-function]
  • Loading branch information
kazutakahirata committed May 28, 2024
1 parent af22e27 commit fea7399
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions clang/unittests/Interpreter/IncrementalProcessingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ using namespace clang;

namespace {

static bool HostSupportsJit() {
auto J = llvm::orc::LLJITBuilder().create();
if (J)
return true;
LLVMConsumeError(llvm::wrap(J.takeError()));
return false;
}

// Incremental processing produces several modules, all using the same "main
// file". Make sure CodeGen can cope with that, e.g. for static initializers.
const char TestProgram1[] = "extern \"C\" int funcForProg1() { return 17; }\n"
Expand Down

0 comments on commit fea7399

Please sign in to comment.