From: Matt Beaumont-Gay Date: Mon, 23 Jan 2012 18:46:04 +0000 (+0000) Subject: Silence warnings in -asserts build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee705a73f6465244a4eef0e6c4f930f87c160a6a;p=oota-llvm.git Silence warnings in -asserts build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148715 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp index 726f8043bf3..3f386175875 100644 --- a/lib/Object/ELFObjectFile.cpp +++ b/lib/Object/ELFObjectFile.cpp @@ -1675,6 +1675,9 @@ namespace llvm { bool isBinary = isa(result); bool isDyld = isa >(result); bool isFile = isa >(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(result); bool isDyld = isa >(result); bool isFile = isa >(result); + (void)isBinary; + (void)isDyld; + (void)isFile; assert(isBinary && isFile && !isDyld && "Type inquiry failed for ELF object!"); return result;