[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 77f8935218
commit 41ab0453ab
1 changed files with 8 additions and 4 deletions

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