[llvm] r257349 - [ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder into
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 08:52:12 PST 2016
Author: lhames
Date: Mon Jan 11 10:52:11 2016
New Revision: 257349
URL: http://llvm.org/viewvc/llvm-project?rev=257349&view=rev
Log:
[ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder into
providing a more helpful error diagnostic.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h?rev=257349&r1=257348&r2=257349&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h Mon Jan 11 10:52:11 2016
@@ -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.");
}
More information about the llvm-commits
mailing list