[llvm] [NFCI][llvm-jitlink] Return 1 instead of exit(1) on entry point error (PR #228311)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 18:43:46 PDT 2026


https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/228311

>From 497c284c468af1b279fb98687799738c20aff017 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Thu, 1 Oct 2026 20:13:45 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.7
---
 llvm/tools/llvm-jitlink/llvm-jitlink.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
index 1a24e4947661122..8df452ee6dd4ab9 100644
--- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
@@ -3173,7 +3173,7 @@ int main(int argc, char *argv[]) {
       Timers->JITLinkTG.printAll(errs());
     reportLLVMJITLinkError(EntryPoint.takeError());
     ExitOnErr(S->ES.endSession());
-    exit(1);
+    return 1;
   }
 
   ExitOnErr(runChecks(*S, std::move(TT), std::move(Features)));



More information about the llvm-commits mailing list