[LLD][ELF] Add missing initialization of Symbol used member.#202578
Conversation
|
@llvm/pr-subscribers-lld Author: Andrew Ng (nga888) ChangesOn the "main" branch, Symbol no longer has the Full diff: https://github.com/llvm/llvm-project/pull/202578.diff 1 Files Affected:
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index 23994ccea1ef0..26d28825558c9 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -243,11 +243,11 @@ class Symbol {
uint8_t stOther, uint8_t type)
: file(file), nameData(name.data()), nameSize(name.size()), type(type),
binding(binding), stOther(stOther), symbolKind(k), isPreemptible(false),
- isUsedInRegularObj(false), isExported(false), ltoCanOmit(false),
- traced(false), hasVersionSuffix(false), isInIplt(false),
- gotInIgot(false), folded(false), archSpecificBit(false),
- scriptDefined(false), dsoDefined(false), dsoProtected(false),
- versionScriptAssigned(false), thunkAccessed(false),
+ isUsedInRegularObj(false), used(false), isExported(false),
+ ltoCanOmit(false), traced(false), hasVersionSuffix(false),
+ isInIplt(false), gotInIgot(false), folded(false),
+ archSpecificBit(false), scriptDefined(false), dsoDefined(false),
+ dsoProtected(false), versionScriptAssigned(false), thunkAccessed(false),
inDynamicList(false), referenced(false), referencedAfterWrap(false) {}
void overwrite(Symbol &sym, Kind k) const {
|
|
@llvm/pr-subscribers-lld-elf Author: Andrew Ng (nga888) ChangesOn the "main" branch, Symbol no longer has the Full diff: https://github.com/llvm/llvm-project/pull/202578.diff 1 Files Affected:
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index 23994ccea1ef0..26d28825558c9 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -243,11 +243,11 @@ class Symbol {
uint8_t stOther, uint8_t type)
: file(file), nameData(name.data()), nameSize(name.size()), type(type),
binding(binding), stOther(stOther), symbolKind(k), isPreemptible(false),
- isUsedInRegularObj(false), isExported(false), ltoCanOmit(false),
- traced(false), hasVersionSuffix(false), isInIplt(false),
- gotInIgot(false), folded(false), archSpecificBit(false),
- scriptDefined(false), dsoDefined(false), dsoProtected(false),
- versionScriptAssigned(false), thunkAccessed(false),
+ isUsedInRegularObj(false), used(false), isExported(false),
+ ltoCanOmit(false), traced(false), hasVersionSuffix(false),
+ isInIplt(false), gotInIgot(false), folded(false),
+ archSpecificBit(false), scriptDefined(false), dsoDefined(false),
+ dsoProtected(false), versionScriptAssigned(false), thunkAccessed(false),
inDynamicList(false), referenced(false), referencedAfterWrap(false) {}
void overwrite(Symbol &sym, Kind k) const {
|
|
Can you reference the commit that removed |
e1751aa to
804ab24
Compare
I've updated the commit message and PR description as requested. |
On the "main" branch, Symbol no longer has the `used` member which was moved in PR llvm#190117 (commit 6a87416). Therefore, when the cherry pick from PR llvm#198129 (commit 905a88b) was merged to the "release/22.x" branch, the initialization of `used` was lost.
804ab24 to
070e505
Compare
On the "main" branch, Symbol no longer has the
usedmember which was moved in PR #190117 (commit 6a87416). Therefore, when the cherry pick from PR #198129 (commit 905a88b) was merged to the "release/22.x" branch, the initialization ofusedwas lost.