Author: Stefan Gränitz Date: 2024-05-28T23:20:27+02:00 New Revision: df542e1ed82bd4e5a9e345d3a3ae63a76893a0cf
URL: https://github.com/llvm/llvm-project/commit/df542e1ed82bd4e5a9e345d3a3ae63a76893a0cf DIFF: https://github.com/llvm/llvm-project/commit/df542e1ed82bd4e5a9e345d3a3ae63a76893a0cf.diff LOG: Fix build: [clang-repl] Even more tests create the Interpreter and must check host JIT support (#84758) fea7399e97b73a3209fcbe3338d412069769a637 had removed the unused function that was still there when I tested. Added: Modified: clang/unittests/Interpreter/IncrementalProcessingTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Interpreter/IncrementalProcessingTest.cpp b/clang/unittests/Interpreter/IncrementalProcessingTest.cpp index 9a99ff6262fa3..732753f11306e 100644 --- a/clang/unittests/Interpreter/IncrementalProcessingTest.cpp +++ b/clang/unittests/Interpreter/IncrementalProcessingTest.cpp @@ -56,6 +56,14 @@ const Function *getGlobalInit(llvm::Module *M) { return nullptr; } +static bool HostSupportsJit() { + auto J = llvm::orc::LLJITBuilder().create(); + if (J) + return true; + LLVMConsumeError(llvm::wrap(J.takeError())); + return false; +} + #ifdef CLANG_INTERPRETER_PLATFORM_CANNOT_CREATE_LLJIT TEST(IncrementalProcessing, DISABLED_EmitCXXGlobalInitFunc) { #else _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits