Skip to content

Commit

Permalink
Ignore Error during creation of JITLink
Browse files Browse the repository at this point in the history
Fixes commit 0f941db259 ("[cling] Adapt and heavily simplify
ClingJITLinkMemoryManager")
  • Loading branch information
hahnjo authored and jenkins committed Dec 3, 2024
1 parent ecbe647 commit b2d9db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Interpreter/IncrementalJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ IncrementalJIT::IncrementalJIT(
// memory segments; the default InProcessMemoryManager (which is mostly
// copied above) already does slab allocation to keep all segments
// together which is needed for exception handling support.
unsigned PageSize = *sys::Process::getPageSize();
unsigned PageSize = cantFail(sys::Process::getPageSize());
auto ObjLinkingLayer = std::make_unique<ObjectLinkingLayer>(
ES, std::make_unique<ClingJITLinkMemoryManager>(PageSize));
ObjLinkingLayer->addPlugin(std::make_unique<EHFrameRegistrationPlugin>(
Expand Down

0 comments on commit b2d9db5

Please sign in to comment.