Skip to content

Commit 7581f13

Browse files
committed
[ORC][examples] Add missing EPCIndirectionUtils::cleanup call.
Clients are required to make this call prior to destroying the object. Adding the missing call fixes an assertion that was triggering at program termination time in the LLJITWithExecutorProcessControl example.
1 parent 441f691 commit 7581f13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,8 @@ int main(int argc, char *argv[]) {
194194
outs() << "---Result---\n"
195195
<< "entry(" << argc << ") = " << Result << "\n";
196196

197+
// Destroy the EPCIndirectionUtils utility.
198+
ExitOnErr(EPCIU->cleanup());
199+
197200
return 0;
198201
}

0 commit comments

Comments
 (0)