[lld] [MTE] [lld] Don't tag symbols in sections with implicit start/stop (PR #73531)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 07:47:59 PST 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 936180a5e8816b2d02393b8faa535bcd37ac9b42 1b23c642357176360b7038df9082373ff076af90 -- lld/ELF/Arch/AArch64.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/ELF/Arch/AArch64.cpp b/lld/ELF/Arch/AArch64.cpp
index 0dff31c6d0..af44668871 100644
--- a/lld/ELF/Arch/AArch64.cpp
+++ b/lld/ELF/Arch/AArch64.cpp
@@ -1007,7 +1007,7 @@ addTaggedSymbolReferences(InputSectionBase &sec,
     // doesn't work under MTE globals, because each GV would have its own unique
     // tag. So, symbols that are destined for a special section with start/stop
     // symbols should go untagged implicitly.
-    const Defined* defined_sym = dyn_cast<Defined>(&sym);
+    const Defined *defined_sym = dyn_cast<Defined>(&sym);
     if (defined_sym && defined_sym->section &&
         isValidCIdentifier(defined_sym->section->name))
       continue;

``````````

</details>


https://github.com/llvm/llvm-project/pull/73531


More information about the llvm-commits mailing list