diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index 92f31c909efd4..753f805824cea 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -473,9 +473,7 @@ Archive::Child::Child(const Archive *Parent, const char *Start, Error *Err) } Header = Parent->createArchiveMemberHeader( - Start, - Parent ? Parent->getData().size() - (Start - Parent->getData().data()) - : 0, + Start, Parent->getData().size() - (Start - Parent->getData().data()), Err); // If we are pointed to real data, Start is not a nullptr, then there must be