[lld] [NFC] Fix a typo (PR #121545)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 21:28:24 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lld
Author: Mingming Liu (mingmingl-llvm)
<details>
<summary>Changes</summary>
If I read `InputSectionBase::relsOrRelas` correctly, it will make at most one array-ref non-empty; the number of empty member containers is 2 or 3 in a real build (counters from one-off debugging logs). Fix the typo if this is the case.
---
Full diff: https://github.com/llvm/llvm-project/pull/121545.diff
1 Files Affected:
- (modified) lld/ELF/InputSection.h (+1-1)
``````````diff
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 303452fed60d86..b891875688bb28 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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/121545
More information about the llvm-commits
mailing list