From 86ece97a378644a5b27fde2c4a0f73788a71585f Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 12 Jan 2016 07:09:41 +0000 Subject: [PATCH] [ORC] Replace some more 'auto' uses with std::error_code. One of the GCC 4.7 bots doesn't seem to like auto, and is currently suffering from an ICE. I'm hoping this will help. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257454 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h index 21e8f483392..eb64c4249f8 100644 --- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h +++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h @@ -118,8 +118,10 @@ public: } if (RODataSize != 0) { - if (auto EC = Client.reserveMem(Unmapped.back().RemoteRODataAddr, Id, - RODataSize, RODataAlign)) { + if (std::error_code EC = + Client.reserveMem(Unmapped.back().RemoteRODataAddr, Id, + RODataSize, RODataAlign)) { + (void)EC; // FIXME; Add error to poll. llvm_unreachable("Failed reserving remote memory."); } @@ -130,8 +132,10 @@ public: } if (RWDataSize != 0) { - if (auto EC = Client.reserveMem(Unmapped.back().RemoteRWDataAddr, Id, - RWDataSize, RWDataAlign)) { + if (std::error_code EC = + Client.reserveMem(Unmapped.back().RemoteRWDataAddr, Id, + RWDataSize, RWDataAlign)) { + (void)EC; // FIXME; Add error to poll. llvm_unreachable("Failed reserving remote memory."); } -- 2.34.1