[lld] [NFC] Fix a typo (PR #121545)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 21:27:56 PST 2025
https://github.com/mingmingl-llvm created https://github.com/llvm/llvm-project/pull/121545
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.
>From d9e4f2633ba26c06511923ba841ae166593a8737 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
Date: Thu, 2 Jan 2025 21:22:01 -0800
Subject: [PATCH] Fix a typo
---
lld/ELF/InputSection.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the llvm-commits
mailing list