[lld] r265534 - Fix use of uninitialized.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 05:19:25 PDT 2016
Author: rafael
Date: Wed Apr 6 07:19:25 2016
New Revision: 265534
URL: http://llvm.org/viewvc/llvm-project?rev=265534&view=rev
Log:
Fix use of uninitialized.
The names of undefined locals are not used, so I don't think it is
possible to actually test this.
Modified:
lld/trunk/ELF/Symbols.cpp
Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=265534&r1=265533&r2=265534&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Wed Apr 6 07:19:25 2016
@@ -262,7 +262,7 @@ UndefinedElf<ELFT>::UndefinedElf(StringR
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);
More information about the llvm-commits
mailing list