forked from OSchip/llvm-project
[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:
parent
f058d67643
commit
3c388597a1
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue