From e923c84436d17927db314246436497b74410b8bc Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 11 Nov 2016 22:50:16 +0000 Subject: [PATCH] [RPC] Add const qualifier to MemberFnWrapper to make buildbots happy. This is a temporary fix: The right solution is to make sure addHandler can support mutable lambdas. I'll add that in a follow-up patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286661 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/Orc/RPCUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/Orc/RPCUtils.h b/include/llvm/ExecutionEngine/Orc/RPCUtils.h index 2ff27efd72d..043fb5f4510 100644 --- a/include/llvm/ExecutionEngine/Orc/RPCUtils.h +++ b/include/llvm/ExecutionEngine/Orc/RPCUtils.h @@ -527,7 +527,7 @@ public: using MethodT = RetT(ClassT::*)(ArgTs...); MemberFnWrapper(ClassT &Instance, MethodT Method) : Instance(Instance), Method(Method) {} - RetT operator()(ArgTs &&... Args) { + RetT operator()(ArgTs &&... Args) const { return (Instance.*Method)(std::move(Args)...); } private: -- 2.40.0