[lld] [lld] Relax needsInterpSection condition (PR #161374)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 30 06:23:00 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- lld/ELF/SyntheticSections.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 525173dd7..6e3e9c46b 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -4517,8 +4517,8 @@ void PartitionIndexSection::writeTo(uint8_t *buf) {
}
static bool needsInterpSection(Ctx &ctx) {
- return !ctx.arg.relocatable &&
- !ctx.arg.dynamicLinker.empty() && ctx.script->needsInterpSection();
+ return !ctx.arg.relocatable && !ctx.arg.dynamicLinker.empty() &&
+ ctx.script->needsInterpSection();
}
bool elf::hasMemtag(Ctx &ctx) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/161374
More information about the llvm-commits
mailing list