Initialize CopyRelSec.
It could be used uninitialized since r310079.
llvm-svn: 315764
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index 281ce63..122d016 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -256,8 +256,8 @@
// This field is a pointer to the symbol's version definition.
const void *Verdef;
- // CopyRelSec and CopyRelSecOff are significant only when NeedsCopy is true.
- InputSection *CopyRelSec;
+ // If not null, there is a copy relocation to this section.
+ InputSection *CopyRelSec = nullptr;
private:
template <class ELFT> const typename ELFT::Sym &getSym() const {