[PATCH] D148955: [Object] Always initialized StartOfFile in Archive::Child::Child constructor.

Thurston Dang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 21 17:04:53 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGebee5e0473df: [Object] Always initialized StartOfFile in Archive::Child::Child constructor. (authored by jacek, committed by thurston).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148955/new/

https://reviews.llvm.org/D148955

Files:
  llvm/lib/Object/Archive.cpp


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148955.515957.patch
Type: text/x-patch
Size: 294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230422/f85d41ad/attachment.bin>


More information about the llvm-commits mailing list