Silence warnings in -asserts build
authorMatt Beaumont-Gay <matthewbg@google.com>
Mon, 23 Jan 2012 18:46:04 +0000 (18:46 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Mon, 23 Jan 2012 18:46:04 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148715 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/ELFObjectFile.cpp

index 726f8043bf38b471f4cc516a8f7ed1e6e80af642..3f386175875fe43577a5e34d9ad86f049e66e5f5 100644 (file)
@@ -1675,6 +1675,9 @@ namespace llvm {
         bool isBinary = isa<Binary>(result);
         bool isDyld = isa<DyldELFObject<support::little, true> >(result);
         bool isFile = isa<ELFObjectFile<support::little, true> >(result);
+        (void)isBinary;
+        (void)isDyld;
+        (void)isFile;
         assert(isBinary && isDyld && isFile &&
             "Type inquiry failed for ELF object!");
         return result;
@@ -1695,6 +1698,9 @@ namespace llvm {
       bool isBinary = isa<Binary>(result);
       bool isDyld = isa<DyldELFObject<support::little, true> >(result);
       bool isFile = isa<ELFObjectFile<support::little, true> >(result);
+      (void)isBinary;
+      (void)isDyld;
+      (void)isFile;
       assert(isBinary && isFile && !isDyld &&
           "Type inquiry failed for ELF object!");
       return result;