From ee9be864bcc5e3cc89f5f23485db2285ad7119f7 Mon Sep 17 00:00:00 2001 From: Mingming Liu Date: Fri, 3 Jan 2025 09:38:04 -0800 Subject: [PATCH] [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. --- 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 60988dfacbd7..98e7d5d4ff0c 100644 --- a/lld/ELF/InputSection.h +++ b/lld/ELF/InputSection.h @@ -33,7 +33,7 @@ class SyntheticSection; template 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 struct RelsOrRelas { Relocs rels; Relocs relas;