[ORC] Replace some more 'auto' uses with std::error_code.
authorLang Hames <lhames@gmail.com>
Tue, 12 Jan 2016 07:09:41 +0000 (07:09 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 12 Jan 2016 07:09:41 +0000 (07:09 +0000)
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.

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

include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h

index 21e8f4833924da0938b9247872b316b4ed24afd8..eb64c4249f8a0966440aba5b3948b85fdb1c7773 100644 (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.");
         }