]> granicus.if.org Git - llvm/commitdiff
ExecutionEngine: silence unused value warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 24 Jun 2016 14:31:09 +0000 (14:31 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 24 Jun 2016 14:31:09 +0000 (14:31 +0000)
The Value is only used in debug or asserts builds.  Just cast to void to silence
an unused variable warning.

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

lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h

index bcd2860ad3cb6512a08fbaf0687da3d03a8a2a5c..ff7d1d4392521005c8fa8f9df696db39eaf20e5c 100644 (file)
@@ -244,6 +244,7 @@ public:
       DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
                    << " RelType: IMAGE_REL_ARM_BRANCH20T"
                    << " Value: " << static_cast<int32_t>(Value) << '\n');
+      static_cast<void>(Value);
       llvm_unreachable("unimplemented relocation");
       break;
     }
@@ -258,6 +259,7 @@ public:
       DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
                    << " RelType: IMAGE_REL_ARM_BRANCH24T"
                    << " Value: " << static_cast<int32_t>(Value) << '\n');
+      static_cast<void>(Value);
       llvm_unreachable("unimplemented relocation");
       break;
     }
@@ -272,6 +274,7 @@ public:
       DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
                    << " RelType: IMAGE_REL_ARM_BLX23T"
                    << " Value: " << static_cast<int32_t>(Value) << '\n');
+      static_cast<void>(Value);
       llvm_unreachable("unimplemented relocation");
       break;
     }