forked from OSchip/llvm-project
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:
parent
f9b79a479e
commit
242ffa8da1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue