diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -468,6 +468,7 @@ : Parent(Parent) { if (!Start) { Header = nullptr; + StartOfFile = -1; return; }