summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-01-12 07:09:41 +0000
committerLang Hames <lhames@gmail.com>2016-01-12 07:09:41 +0000
commit41ab0453abebe0e71f987033b50ba695919ce85a (patch)
tree176569fea4c7d7a7d3d900d19e0e7da87d6b59aa /llvm
parent77f8935218a48b7b223a4e304785e31a69b1c3f3 (diff)
downloadbcm5719-llvm-41ab0453abebe0e71f987033b50ba695919ce85a.tar.gz
bcm5719-llvm-41ab0453abebe0e71f987033b50ba695919ce85a.zip
[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. llvm-svn: 257454
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
index 21e8f483392..eb64c4249f8 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
+++ b/llvm/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.");
}
OpenPOWER on IntegriCloud