From: Lang Hames Date: Tue, 12 Jan 2016 18:17:23 +0000 (+0000) Subject: [Orc] Replace lambda with a helper method. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=9859617d8c57ac4421784cde1dd05d9e5a8c669f;ds=sidebyside [Orc] Replace lambda with a helper method. 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 --- diff --git a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h index a69510d3ff1..97318bcfa03 100644 --- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h +++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h @@ -730,10 +730,7 @@ private: return EC; if (std::error_code EC = - expect(Channel, [&](TargetAddress Addr) { - RemoteAddr = Addr; - return std::error_code(); - })) + expect(Channel, readArgs(RemoteAddr))) return EC; return std::error_code();