Skip to content

Commit

Permalink
[NFC] Fix a typo (#121545)
Browse files Browse the repository at this point in the history
`InputSectionBase::relsOrRelas` make at most one array-ref non-empty. One-off counter (as debugging log) shows the number of empty member containers is 2 or 3 in a real build.

Fix the typo.
  • Loading branch information
mingmingl-llvm authored Jan 3, 2025
1 parent e6f7637 commit ee9be86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/InputSection.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SyntheticSection;
template <class ELFT> class ObjFile;
class OutputSection;

// Returned by InputSectionBase::relsOrRelas. At most one member is empty.
// Returned by InputSectionBase::relsOrRelas. At least two members are empty.
template <class ELFT> struct RelsOrRelas {
Relocs<typename ELFT::Rel> rels;
Relocs<typename ELFT::Rela> relas;
Expand Down

0 comments on commit ee9be86

Please sign in to comment.