mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[ORC] Add missing LLVMConsumeError calls.
This commit is contained in:
parent
ff7fda7c8a
commit
f1a588fb2a
@ -297,10 +297,12 @@ TEST_F(OrcCAPITestBase, ExecutionTest) {
|
||||
LLVMInitializeNativeAsmPrinter();
|
||||
LLVMOrcThreadSafeModuleRef TSM = createTestModule();
|
||||
if (LLVMErrorRef E = LLVMOrcLLJITAddLLVMIRModule(Jit, MainDylib, TSM)) {
|
||||
LLVMConsumeError(E);
|
||||
FAIL() << "Failed to add LLVM IR module to LLJIT";
|
||||
}
|
||||
LLVMOrcJITTargetAddress TestFnAddr;
|
||||
if (LLVMOrcLLJITLookup(Jit, &TestFnAddr, "sum")) {
|
||||
if (LLVMErrorRef E = LLVMOrcLLJITLookup(Jit, &TestFnAddr, "sum")) {
|
||||
LLVMConsumeError(E);
|
||||
FAIL() << "Symbol \"sum\" was not added into JIT";
|
||||
}
|
||||
auto *SumFn = (SumFunctionType)(TestFnAddr);
|
||||
|
Loading…
Reference in New Issue
Block a user