diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-06 12:19:25 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-06 12:19:25 +0000 |
| commit | 242ffa8da1cd0c3cda98ecd4dbdc68712fe0c727 (patch) | |
| tree | f39691fd9258b5d5a69f08e9b51391a4cbc48e42 /lld | |
| parent | f9b79a479e2c5330554576cfec2cbaca272fa719 (diff) | |
| download | bcm5719-llvm-242ffa8da1cd0c3cda98ecd4dbdc68712fe0c727.tar.gz bcm5719-llvm-242ffa8da1cd0c3cda98ecd4dbdc68712fe0c727.zip | |
Fix use of uninitialized.
The names of undefined locals are not used, so I don't think it is
possible to actually test this.
llvm-svn: 265534
Diffstat (limited to 'lld')
| -rw-r--r-- | lld/ELF/Symbols.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp index 445fe3063b0..78fabc8b9ec 100644 --- a/lld/ELF/Symbols.cpp +++ b/lld/ELF/Symbols.cpp @@ -262,7 +262,7 @@ UndefinedElf<ELFT>::UndefinedElf(StringRef N, const Elf_Sym &Sym) template <typename ELFT> UndefinedElf<ELFT>::UndefinedElf(const Elf_Sym &Sym) - : Undefined(SymbolBody::UndefinedElfKind, NameOffset, Sym.st_other, + : Undefined(SymbolBody::UndefinedElfKind, Sym.st_name, Sym.st_other, Sym.getType()), Size(Sym.st_size) { assert(Sym.getBinding() == STB_LOCAL); |

