[llvm] r257454 - [ORC] Replace some more 'auto' uses with std::error_code.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 23:09:42 PST 2016
Author: lhames
Date: Tue Jan 12 01:09:41 2016
New Revision: 257454
URL: http://llvm.org/viewvc/llvm-project?rev=257454&view=rev
Log:
[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.
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=257454&r1=257453&r2=257454&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h Tue Jan 12 01:09:41 2016
@@ -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.");
}
More information about the llvm-commits
mailing list