[lld] [ARM][LLD] Fix buildbot failure due to ununsed variable [NFC] (PR #202925)
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 04:00:43 PDT 2026
================
@@ -1801,8 +1801,7 @@ static bool isThunkSectionCompatible(InputSection *source, Thunk &thunk) {
// Thunks in a different Overlay Output Section can't be reused
// as we can't guarantee that the Overlay will be in memory.
- return (source->getOutputSection() == targetOS->getOutputSection() ||
----------------
statham-arm wrote:
This surely meant to be `target->getOutputSection()` in any case, although it seems to have been harmless because `SectionBase::getOutputSection` turns into a no-op in that situation.
https://github.com/llvm/llvm-project/pull/202925
More information about the llvm-commits
mailing list