[lld-macho][nfc] Fix uninitialized members warning from Coverity

We were always assigning to this member before using it, but just to be
safe...

See https://lists.llvm.org/pipermail/llvm-dev/2021-June/151029.html
This commit is contained in:
Jez Ng 2021-06-10 15:06:20 -04:00
parent 4e5f8b4d8d
commit 4b5c6c5c4b
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ struct StringPiece {
uint32_t inSecOff;
uint32_t hash;
// Offset from the start of the containing output section.
uint64_t outSecOff;
uint64_t outSecOff = 0;
StringPiece(uint64_t off, uint32_t hash) : inSecOff(off), hash(hash) {}
};