diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp index 3f386175875..873d7b94726 100644 --- a/lib/Object/ELFObjectFile.cpp +++ b/lib/Object/ELFObjectFile.cpp @@ -1672,14 +1672,11 @@ namespace llvm { new DyldELFObject(Object, MemoryMap, ec); // Unit testing for type inquiry - 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!"); + assert(isa(result) && "Type inquiry failed for ELF object!"); + assert((isa >(result)) && + "Type inquiry failed for ELF object!"); + assert((isa >(result)) && + "Type inquiry failed for ELF object!"); return result; } } @@ -1695,14 +1692,11 @@ namespace llvm { new ELFObjectFile(Object, ec); // Unit testing for type inquiry - 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!"); + assert(isa(result) && "Type inquiry failed for ELF object!"); + assert((!isa >(result)) && + "Type inquiry failed for ELF object!"); + assert((isa >(result)) && + "Type inquiry failed for ELF object!"); return result; }