[llvm-commits] [llvm] r148715 - /llvm/trunk/lib/Object/ELFObjectFile.cpp
Matt Beaumont-Gay
matthewbg at google.com
Mon Jan 23 10:46:04 PST 2012
Author: matthewbg
Date: Mon Jan 23 12:46:04 2012
New Revision: 148715
URL: http://llvm.org/viewvc/llvm-project?rev=148715&view=rev
Log:
Silence warnings in -asserts build
Modified:
llvm/trunk/lib/Object/ELFObjectFile.cpp
Modified: llvm/trunk/lib/Object/ELFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ELFObjectFile.cpp?rev=148715&r1=148714&r2=148715&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ELFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/ELFObjectFile.cpp Mon Jan 23 12:46:04 2012
@@ -1675,6 +1675,9 @@
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 @@
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;
More information about the llvm-commits
mailing list