diff --git a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp index 634d74d9b80ed0..04c2c2e9545e37 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp @@ -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; }