From: Lang Hames Date: Mon, 11 Jan 2016 16:52:11 +0000 (+0000) Subject: [ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder into X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f1e6e637611a808493a52c9e7f867f326a2785bb;hp=01a6cb6ce3111cb4080120ed827c7e1af098c901 [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 --- 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."); }