Navigation Menu

Skip to content

Commit

Permalink
[ORC][examples] Fix segfault in LLJITWithTargetProcessControl
Browse files Browse the repository at this point in the history
Issue reported during review D110260
  • Loading branch information
weliveindetail committed Sep 23, 2021
1 parent eb209c1 commit 8284227
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -147,7 +147,8 @@ int main(int argc, char *argv[]) {
});

// (3) Create stubs and call-through managers:
auto EPCIU = ExitOnErr(EPCIndirectionUtils::Create(*EPC));
auto EPCIU = ExitOnErr(EPCIndirectionUtils::Create(
J->getExecutionSession().getExecutorProcessControl()));
ExitOnErr(EPCIU->writeResolverBlock(pointerToJITTargetAddress(&reenter),
pointerToJITTargetAddress(EPCIU.get())));
EPCIU->createLazyCallThroughManager(
Expand Down

0 comments on commit 8284227

Please sign in to comment.