We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891d1e1 commit 0bef557Copy full SHA for 0bef557
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
@@ -297,10 +297,12 @@ TEST_F(OrcCAPITestBase, ExecutionTest) {
297
LLVMInitializeNativeAsmPrinter();
298
LLVMOrcThreadSafeModuleRef TSM = createTestModule();
299
if (LLVMErrorRef E = LLVMOrcLLJITAddLLVMIRModule(Jit, MainDylib, TSM)) {
300
+ LLVMConsumeError(E);
301
FAIL() << "Failed to add LLVM IR module to LLJIT";
302
}
303
LLVMOrcJITTargetAddress TestFnAddr;
- if (LLVMOrcLLJITLookup(Jit, &TestFnAddr, "sum")) {
304
+ if (LLVMErrorRef E = LLVMOrcLLJITLookup(Jit, &TestFnAddr, "sum")) {
305
306
FAIL() << "Symbol \"sum\" was not added into JIT";
307
308
auto *SumFn = (SumFunctionType)(TestFnAddr);
0 commit comments