[llvm] [orc-rt] Remove unused Session argument from WrapperFunction::call. (PR #169255)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 23 15:55:26 PST 2025


https://github.com/lhames created https://github.com/llvm/llvm-project/pull/169255

None

>From 8570dd79618f26632518b9434e148d76eb93b749 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Mon, 24 Nov 2025 10:38:34 +1100
Subject: [PATCH] [orc-rt] Remove unused Session argument from
 WrapperFunction::call.

---
 orc-rt/include/orc-rt/WrapperFunction.h | 4 ++--
 orc-rt/unittests/DirectCaller.h         | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/orc-rt/include/orc-rt/WrapperFunction.h b/orc-rt/include/orc-rt/WrapperFunction.h
index 923c9974860f2..1cdda33d96427 100644
--- a/orc-rt/include/orc-rt/WrapperFunction.h
+++ b/orc-rt/include/orc-rt/WrapperFunction.h
@@ -346,8 +346,8 @@ struct WrapperFunction {
 
     if (auto ArgBytes = Z.arguments().serialize(std::forward<ArgTs>(Args)...)) {
       C(
-          [RH = std::move(RH), Z = std::move(Z)](
-              orc_rt_SessionRef S, WrapperFunctionBuffer ResultBytes) mutable {
+          [RH = std::move(RH),
+           Z = std::move(Z)](WrapperFunctionBuffer ResultBytes) mutable {
             if (const char *ErrMsg = ResultBytes.getOutOfBandError())
               RH(make_error<StringError>(ErrMsg));
             else
diff --git a/orc-rt/unittests/DirectCaller.h b/orc-rt/unittests/DirectCaller.h
index 7d4d6ea162608..d7175b3e0fd89 100644
--- a/orc-rt/unittests/DirectCaller.h
+++ b/orc-rt/unittests/DirectCaller.h
@@ -37,7 +37,7 @@ class DirectCaller {
     DirectResultSenderImpl(ImplFn &&Fn) : Fn(std::forward<ImplFn>(Fn)) {}
     void send(orc_rt_SessionRef S,
               orc_rt::WrapperFunctionBuffer ResultBytes) override {
-      Fn(S, std::move(ResultBytes));
+      Fn(std::move(ResultBytes));
     }
 
   private:



More information about the llvm-commits mailing list