[lld] [lld] [MTE] Drop MTE globals for fully static executables, not ban (PR #68217)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 4 06:22:12 PDT 2023
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 ceec9a7874af2eea8b00b5616fad388ccfa2b4f3 26ff814bc966fa109c97a9e69a1886d232c8274b -- lld/ELF/Driver.cpp lld/ELF/Writer.cpp lld/ELF/Writer.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 46ca8c94a362..8bef9ed9d6df 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -3035,7 +3035,7 @@ void LinkerDriver::link(opt::InputArgList &args) {
} else if (config->emachine == EM_AARCH64) {
// For fully static executables, make sure we prune any potential
// SHT_AARCH64_MEMTAG_GLOBALS_STATIC sections.
- for (InputFile* file : ctx.objectFiles) {
+ for (InputFile *file : ctx.objectFiles) {
if (file->kind() != InputFile::ObjKind)
continue;
for (InputSectionBase *section : file->getSections()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/68217
More information about the llvm-commits
mailing list