Skip to content

Commit

Permalink
[lld/COFF] Remove needless indirection
Browse files Browse the repository at this point in the history
`symtab.ctx.symtab` is just `symtab`. Looks like llvm#119296 added
this using a global find-and-replace.

This was the only instance of `symtab.ctx.symtab` in lld/.

No behavior change.
  • Loading branch information
nico committed Dec 17, 2024
1 parent 169c32e commit cde996c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/COFF/SymbolTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static void forceLazy(Symbol *s) {
}
case Symbol::Kind::LazyObjectKind: {
InputFile *file = cast<LazyObject>(s)->file;
file->symtab.ctx.symtab.addFile(file);
file->symtab.addFile(file);
break;
}
case Symbol::Kind::LazyDLLSymbolKind: {
Expand Down

0 comments on commit cde996c

Please sign in to comment.