[Orc] Replace lambda with a helper method.
authorLang Hames <lhames@gmail.com>
Tue, 12 Jan 2016 18:17:23 +0000 (18:17 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 12 Jan 2016 18:17:23 +0000 (18:17 +0000)
This is good cleanup, but I'm also hoping it'll fix some more GCC ICEs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257498 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h

index a69510d..97318bc 100644 (file)
@@ -730,10 +730,7 @@ private:
       return EC;
 
     if (std::error_code EC =
       return EC;
 
     if (std::error_code EC =
-            expect<ReserveMemResponse>(Channel, [&](TargetAddress Addr) {
-              RemoteAddr = Addr;
-              return std::error_code();
-            }))
+            expect<ReserveMemResponse>(Channel, readArgs(RemoteAddr)))
       return EC;
 
     return std::error_code();
       return EC;
 
     return std::error_code();