[llvm] f827c20 - [llvm-jitlink] Remove redundant ExecutorAddr constructor calls. NFCI. (#175488)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 11 21:57:24 PST 2026


Author: Lang Hames
Date: 2026-01-12T16:57:20+11:00
New Revision: f827c20ccf73bf5a26a579465a634a8db95abdb6

URL: https://github.com/llvm/llvm-project/commit/f827c20ccf73bf5a26a579465a634a8db95abdb6
DIFF: https://github.com/llvm/llvm-project/commit/f827c20ccf73bf5a26a579465a634a8db95abdb6.diff

LOG: [llvm-jitlink] Remove redundant ExecutorAddr constructor calls. NFCI. (#175488)

These ExecutorAddr calls were legacy from pre-ExecutorSymbolDef code.
The getAddress method already returns an ExecutorAddr, so there's no
need for them anymore.

Added: 
    

Modified: 
    llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
index 0cf4a175622f8..7732992f77cb3 100644
--- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
@@ -2945,11 +2945,9 @@ int main(int argc, char *argv[]) {
     LLVM_DEBUG(dbgs() << "Running \"" << EntryPointName << "\"...\n");
     TimeRegion TR(Timers ? &Timers->RunTimer : nullptr);
     if (!OrcRuntime.empty())
-      Result =
-          ExitOnErr(runWithRuntime(*S, ExecutorAddr(EntryPoint->getAddress())));
+      Result = ExitOnErr(runWithRuntime(*S, EntryPoint->getAddress()));
     else
-      Result = ExitOnErr(
-          runWithoutRuntime(*S, ExecutorAddr(EntryPoint->getAddress())));
+      Result = ExitOnErr(runWithoutRuntime(*S, EntryPoint->getAddress()));
   }
 
   // Destroy the session.


        


More information about the llvm-commits mailing list