[clang] 86258bd - [ORC][clang-repl] Fix another unit test after 122ebe3b500.
Lang Hames via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 24 08:49:57 PDT 2023
Author: Lang Hames
Date: 2023-08-24T08:20:07-07:00
New Revision: 86258bda2016323d32efbe6a298654cd77cde644
URL: https://github.com/llvm/llvm-project/commit/86258bda2016323d32efbe6a298654cd77cde644
DIFF: https://github.com/llvm/llvm-project/commit/86258bda2016323d32efbe6a298654cd77cde644.diff
LOG: [ORC][clang-repl] Fix another unit test after 122ebe3b500.
Same fix as 8a62d6ba7e: We need to make sure that the supports-JIT check uses
the same JIT config that will be used in the actual test.
Added:
Modified:
clang/unittests/Interpreter/InterpreterTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp
index 338003cd9851c9..1800bff153b713 100644
--- a/clang/unittests/Interpreter/InterpreterTest.cpp
+++ b/clang/unittests/Interpreter/InterpreterTest.cpp
@@ -191,7 +191,9 @@ static std::string MangleName(NamedDecl *ND) {
}
static bool HostSupportsJit() {
- auto J = llvm::orc::LLJITBuilder().create();
+ auto J = llvm::orc::LLJITBuilder()
+ .setEnableDebuggerSupport(true)
+ .create();
if (J)
return true;
LLVMConsumeError(llvm::wrap(J.takeError()));
More information about the cfe-commits
mailing list