diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-04-01 22:28:00 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-04-01 22:28:00 +0000 |
| commit | 0d83d6129771f48cccc17cc2b5389b5359dbf30c (patch) | |
| tree | 6544970d55e7c3d87b9de653fd8348f9a05fbef3 /lld/lib/ReaderWriter/ELF/DynamicFile.h | |
| parent | bc0217396e619e2b162f79a4ba406db9536d0d5c (diff) | |
| download | bcm5719-llvm-0d83d6129771f48cccc17cc2b5389b5359dbf30c.tar.gz bcm5719-llvm-0d83d6129771f48cccc17cc2b5389b5359dbf30c.zip | |
Use C++ non-static member initialization.
llvm-svn: 233859
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicFile.h')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/DynamicFile.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicFile.h b/lld/lib/ReaderWriter/ELF/DynamicFile.h index c4e3e7165ef..e3e898fcd73 100644 --- a/lld/lib/ReaderWriter/ELF/DynamicFile.h +++ b/lld/lib/ReaderWriter/ELF/DynamicFile.h @@ -99,9 +99,8 @@ private: StringRef _soname; struct SymAtomPair { - SymAtomPair() : _symbol(nullptr), _atom(nullptr) {} - const typename llvm::object::ELFFile<ELFT>::Elf_Sym *_symbol; - const SharedLibraryAtom *_atom; + const typename llvm::object::ELFFile<ELFT>::Elf_Sym *_symbol = nullptr; + const SharedLibraryAtom *_atom = nullptr; }; std::unique_ptr<MemoryBuffer> _mb; |

