diff options
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicFile.h')
-rw-r--r-- | lld/lib/ReaderWriter/ELF/DynamicFile.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicFile.h b/lld/lib/ReaderWriter/ELF/DynamicFile.h index c513b4e5a9b..8255c81f8ba 100644 --- a/lld/lib/ReaderWriter/ELF/DynamicFile.h +++ b/lld/lib/ReaderWriter/ELF/DynamicFile.h @@ -109,6 +109,7 @@ private: DynamicFile(const ELFTargetInfo &ti, StringRef name) : SharedLibraryFile(name), _targetInfo(ti) {} + mutable llvm::BumpPtrAllocator _alloc; const ELFTargetInfo &_targetInfo; std::unique_ptr<llvm::object::ELFObjectFile<ELFT>> _objFile; atom_collection_vector<DefinedAtom> _definedAtoms; @@ -119,13 +120,12 @@ private: StringRef _soname; struct SymAtomPair { - const typename llvm::object::ELFObjectFile<ELFT>::Elf_Sym *_symbol = - nullptr; - const SharedLibraryAtom *_atom = nullptr; + SymAtomPair() : _symbol(nullptr), _atom(nullptr) {} + const typename llvm::object::ELFObjectFile<ELFT>::Elf_Sym *_symbol; + const SharedLibraryAtom *_atom; }; mutable std::unordered_map<StringRef, SymAtomPair> _nameToSym; - mutable llvm::BumpPtrAllocator _alloc; }; } // end namespace elf } // end namespace lld |