1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Silence warnings in -asserts build

llvm-svn: 148715
This commit is contained in:
Matt Beaumont-Gay 2012-01-23 18:46:04 +00:00
parent 9698de5bf3
commit ea859b30be

View 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;