[ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder into

providing a more helpful error diagnostic.

llvm-svn: 257349
This commit is contained in:
Lang Hames 2016-01-11 16:52:11 +00:00
parent f058d67643
commit 3c388597a1
1 changed files with 3 additions and 2 deletions

View File

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