1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[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
This commit is contained in:
Lang Hames 2016-01-12 07:09:41 +00:00
parent f37b24374f
commit 65803871bd

View File

@ -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.");
}