mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
[orc-rt] Remove unused Session argument from WrapperFunction::call. (#169255)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user