summaryrefslogtreecommitdiff
path: root/lib/Object
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-01-23 18:46:04 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-01-23 18:46:04 +0000
commitee705a73f6465244a4eef0e6c4f930f87c160a6a (patch)
tree5789d16fda333ff437353b43c17e118a70b2898d /lib/Object
parent7c64fe651ad4581ac66b6407116144442a8a7f03 (diff)
downloadllvm-ee705a73f6465244a4eef0e6c4f930f87c160a6a.tar.gz
llvm-ee705a73f6465244a4eef0e6c4f930f87c160a6a.tar.bz2
llvm-ee705a73f6465244a4eef0e6c4f930f87c160a6a.tar.xz
Silence warnings in -asserts build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/ELFObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp
index 726f8043bf..3f38617587 100644
--- a/lib/Object/ELFObjectFile.cpp
+++ b/lib/Object/ELFObjectFile.cpp
@@ -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;