[ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder into
authorLang Hames <lhames@gmail.com>
Mon, 11 Jan 2016 16:52:11 +0000 (16:52 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 11 Jan 2016 16:52:11 +0000 (16:52 +0000)
providing a more helpful error diagnostic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257349 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h

index fb15c8f3424f228c18302e9a116e6779095ebc1f..accf4e0f674ef738095f4693f6e5af33ddb3cba2 100644 (file)
@@ -91,8 +91,9 @@ public:
       DEBUG(dbgs() << "Allocator " << Id << " reserved:\n");
 
       if (CodeSize != 0) {
       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.");
         }
           // FIXME; Add error to poll.
           llvm_unreachable("Failed reserving remote memory.");
         }