[llvm] r286661 - [RPC] Add const qualifier to MemberFnWrapper to make buildbots happy.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 14:50:17 PST 2016


Author: lhames
Date: Fri Nov 11 16:50:16 2016
New Revision: 286661

URL: http://llvm.org/viewvc/llvm-project?rev=286661&view=rev
Log:
[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.


Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h?rev=286661&r1=286660&r2=286661&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h Fri Nov 11 16:50:16 2016
@@ -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:




More information about the llvm-commits mailing list