diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp index 2aa481381df2..bd372c37b8f6 100644 --- a/llvm/lib/Object/ArchiveWriter.cpp +++ b/llvm/lib/Object/ArchiveWriter.cpp @@ -318,9 +318,8 @@ llvm::writeArchive(StringRef ArcName, MemberRef = Buffers.back()->getMemBufferRef(); } else { object::Archive::child_iterator OldMember = Member.getOld(); - assert(!Thin || - OldMember->getParent()->isThin() && - "Thin archives cannot refers to member of other archives"); + assert((!Thin || OldMember->getParent()->isThin()) && + "Thin archives cannot refers to member of other archives"); ErrorOr MemberBufferOrErr = OldMember->getMemoryBufferRef(); if (auto EC = MemberBufferOrErr.getError())