Skip to content

Commit 3cb9648

Browse files
committed
[llvm-jitlink] Shut down the session on an error return path.
Ensures cleanup of task dispatcher threads. This may address some of the nondeterministic failures seen in llvm-jitlink regression tests recently.
1 parent b0f11df commit 3cb9648

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,6 +2562,7 @@ int main(int argc, char *argv[]) {
25622562
if (Timers)
25632563
Timers->JITLinkTG.printAll(errs());
25642564
reportLLVMJITLinkError(EntryPoint.takeError());
2565+
ExitOnErr(S->ES.endSession());
25652566
exit(1);
25662567
}
25672568

0 commit comments

Comments
 (0)