[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 a69510d3ff1c596638ba04c44e6f553a85382ee9..97318bcfa0357a9311005304f81455a4953bcc04 100644 (file)
@@ -730,10 +730,7 @@ private:
       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();