Commit 7581f138 authored by Lang Hames's avatar Lang Hames
Browse files

[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.
parent 441f691b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -194,5 +194,8 @@ int main(int argc, char *argv[]) {
  outs() << "---Result---\n"
         << "entry(" << argc << ") = " << Result << "\n";

  // Destroy the EPCIndirectionUtils utility.
  ExitOnErr(EPCIU->cleanup());

  return 0;
}