Skip to content

Commit c025b96

Browse files
committed
[ELF] Symbol::extract : remove unneeded file->lazy check
1 parent 5daecd4 commit c025b96

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lld/ELF/Symbols.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ void Symbol::parseSymbolVersion(Ctx &ctx) {
254254
}
255255

256256
void Symbol::extract(Ctx &ctx) const {
257-
if (file->lazy) {
258-
file->lazy = false;
259-
parseFile(ctx, file);
260-
}
257+
assert(file->lazy);
258+
file->lazy = false;
259+
parseFile(ctx, file);
261260
}
262261

263262
uint8_t Symbol::computeBinding(Ctx &ctx) const {

0 commit comments

Comments
 (0)