From f1e6e637611a808493a52c9e7f867f326a2785bb Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 11 Jan 2016 16:52:11 +0000 Subject: [PATCH] [ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder into providing a more helpful error diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257349 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h index fb15c8f3424..accf4e0f674 100644 --- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h +++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h @@ -91,8 +91,9 @@ public: DEBUG(dbgs() << "Allocator " << Id << " reserved:\n"); if (CodeSize != 0) { - if (auto EC = Client.reserveMem(Unmapped.back().RemoteCodeAddr, Id, - CodeSize, CodeAlign)) { + if (std::error_code EC = Client.reserveMem( + Unmapped.back().RemoteCodeAddr, Id, CodeSize, CodeAlign)) { + (void)EC; // FIXME; Add error to poll. llvm_unreachable("Failed reserving remote memory."); } -- 2.34.1