[lld] 6ec2261 - [ARM][LLD] Fix buildbot failure due to ununsed variable [NFC] (#202925)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 05:04:15 PDT 2026
Author: Peter Smith
Date: 2026-06-10T13:04:09+01:00
New Revision: 6ec2261fa29de72fe9520192a3e8b2f5f2082b67
URL: https://github.com/llvm/llvm-project/commit/6ec2261fa29de72fe9520192a3e8b2f5f2082b67
DIFF: https://github.com/llvm/llvm-project/commit/6ec2261fa29de72fe9520192a3e8b2f5f2082b67.diff
LOG: [ARM][LLD] Fix buildbot failure due to ununsed variable [NFC] (#202925)
The variable was used in an assert, have altered the code to use in an a
non-assert context.
Added:
Modified:
lld/ELF/Relocations.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 0338754c9c32f..0d45236e6d11e 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -1801,8 +1801,7 @@ static bool isThunkSectionCompatible(InputSection *source, Thunk &thunk) {
// Thunks in a
diff erent Overlay Output Section can't be reused
// as we can't guarantee that the Overlay will be in memory.
- return (source->getOutputSection() == targetOS->getOutputSection() ||
- !targetOS->inOverlay);
+ return (sourceOS == targetOS || !targetOS->inOverlay);
}
std::pair<Thunk *, bool> ThunkCreator::getThunk(InputSection *isec,
More information about the llvm-commits
mailing list