Skip to content

Commit fea7399

Browse files
[clang] Fix a warning
This patch fixes: clang/unittests/Interpreter/IncrementalProcessingTest.cpp:39:13: error: unused function 'HostSupportsJit' [-Werror,-Wunused-function]
1 parent af22e27 commit fea7399

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clang/unittests/Interpreter/IncrementalProcessingTest.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ using namespace clang;
3636

3737
namespace {
3838

39-
static bool HostSupportsJit() {
40-
auto J = llvm::orc::LLJITBuilder().create();
41-
if (J)
42-
return true;
43-
LLVMConsumeError(llvm::wrap(J.takeError()));
44-
return false;
45-
}
46-
4739
// Incremental processing produces several modules, all using the same "main
4840
// file". Make sure CodeGen can cope with that, e.g. for static initializers.
4941
const char TestProgram1[] = "extern \"C\" int funcForProg1() { return 17; }\n"

0 commit comments

Comments
 (0)