Skip to content

Commit 070e505

Browse files
nga888dyung
authored andcommitted
[LLD][ELF] Add missing initialization of Symbol used member.
On the "main" branch, Symbol no longer has the `used` member 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 of `used` was lost.
1 parent 761b913 commit 070e505

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎lld/ELF/Symbols.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ class Symbol {
243243
uint8_t stOther, uint8_t type)
244244
: file(file), nameData(name.data()), nameSize(name.size()), type(type),
245245
binding(binding), stOther(stOther), symbolKind(k), isPreemptible(false),
246-
isUsedInRegularObj(false), isExported(false), ltoCanOmit(false),
247-
traced(false), hasVersionSuffix(false), isInIplt(false),
248-
gotInIgot(false), folded(false), archSpecificBit(false),
249-
scriptDefined(false), dsoDefined(false), dsoProtected(false),
250-
versionScriptAssigned(false), thunkAccessed(false),
246+
isUsedInRegularObj(false), used(false), isExported(false),
247+
ltoCanOmit(false), traced(false), hasVersionSuffix(false),
248+
isInIplt(false), gotInIgot(false), folded(false),
249+
archSpecificBit(false), scriptDefined(false), dsoDefined(false),
250+
dsoProtected(false), versionScriptAssigned(false), thunkAccessed(false),
251251
inDynamicList(false), referenced(false), referencedAfterWrap(false) {}
252252

253253
void overwrite(Symbol &sym, Kind k) const {

0 commit comments

Comments
 (0)