[lld] ee9be86 - [NFC] Fix a typo (#121545)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 09:38:08 PST 2025
Author: Mingming Liu
Date: 2025-01-03T09:38:04-08:00
New Revision: ee9be864bcc5e3cc89f5f23485db2285ad7119f7
URL: https://github.com/llvm/llvm-project/commit/ee9be864bcc5e3cc89f5f23485db2285ad7119f7
DIFF: https://github.com/llvm/llvm-project/commit/ee9be864bcc5e3cc89f5f23485db2285ad7119f7.diff
LOG: [NFC] Fix a typo (#121545)
`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.
Added:
Modified:
lld/ELF/InputSection.h
Removed:
################################################################################
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 60988dfacbd746..98e7d5d4ff0cd2 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -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;
More information about the llvm-commits
mailing list