Skip to content

Commit f6370ab

Browse files
committed
fixup! amend! [C-API] LLVMOrcCreateObjectLinkingLayerWithInProcessMemoryManager
1 parent 8d6a153 commit f6370ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,9 +1024,8 @@ LLVMErrorRef LLVMOrcCreateObjectLinkingLayerWithInProcessMemoryManager(
10241024
assert(Result && "Result must not be null");
10251025
assert(ES && "ES must not be null");
10261026
auto MM = jitlink::InProcessMemoryManager::Create();
1027-
if (!MM) {
1027+
if (!MM)
10281028
return wrap(MM.takeError());
1029-
}
10301029
*Result = wrap(new ObjectLinkingLayer(*unwrap(ES), std::move(*MM)));
10311030
return LLVMErrorSuccess;
10321031
}

0 commit comments

Comments
 (0)