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
This commit is contained in:
Rafael Espindola 2016-04-06 12:19:25 +00:00
parent f9b79a479e
commit 242ffa8da1
1 changed files with 1 additions and 1 deletions

View File

@ -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);