projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9b79a4
)
Fix use of uninitialized.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 6 Apr 2016 12:19:25 +0000
(12:19 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 6 Apr 2016 12:19:25 +0000
(12:19 +0000)
The names of undefined locals are not used, so I don't think it is
possible to actually test this.
llvm-svn: 265534
lld/ELF/Symbols.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Symbols.cpp
b/lld/ELF/Symbols.cpp
index
445fe30
..
78fabc8
100644
(file)
--- 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);