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

This commit is contained in:
Lang Hames
2025-11-24 11:04:37 +11:00
committed by GitHub
parent b73a281f02
commit 3c3e2a2952
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -37,7 +37,7 @@ private:
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: