aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
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
commit54db64e2e48c016ae21263202d9f674b3f92be78 (patch)
tree3a1e82eb9f8a467d354682aa996dab29fb422efe /llvm/lib/Object/ELFObjectFile.cpp
parentf9418f96795d48ffd15fc172774c511c08d48bf9 (diff)
downloadllvm-54db64e2e48c016ae21263202d9f674b3f92be78.zip
llvm-54db64e2e48c016ae21263202d9f674b3f92be78.tar.gz
llvm-54db64e2e48c016ae21263202d9f674b3f92be78.tar.bz2
Silence warnings in -asserts build
llvm-svn: 148715
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ELFObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp
index 726f804..3f38617 100644
--- a/llvm/lib/Object/ELFObjectFile.cpp
+++ b/llvm/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;