[compiler-rt] [compiler-rt] Strip MTE tags from ASAN and TSAN (PR #166453)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 14:03:56 PST 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 h -- compiler-rt/lib/asan/asan_mapping.h compiler-rt/lib/tsan/rtl/tsan_platform.h --diff_from_common_commit
``````````
: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/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h
index fc7d1be61..35456cd7b 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h
@@ -1007,7 +1007,8 @@ struct MemToShadowImpl {
ALWAYS_INLINE
RawShadow *MemToShadow(uptr x) {
- return reinterpret_cast<RawShadow *>(SelectMapping<MemToShadowImpl>(StripTag(mem)));
+ return reinterpret_cast<RawShadow*>(
+ SelectMapping<MemToShadowImpl>(StripTag(mem)));
}
struct MemToMetaImpl {
@@ -1021,7 +1022,7 @@ struct MemToMetaImpl {
};
ALWAYS_INLINE
-u32 *MemToMeta(uptr x) { return SelectMapping<MemToMetaImpl>(StripTag(x)); }
+u32* MemToMeta(uptr x) { return SelectMapping<MemToMetaImpl>(StripTag(x)); }
struct ShadowToMemImpl {
template <typename Mapping>
``````````
</details>
https://github.com/llvm/llvm-project/pull/166453
More information about the llvm-commits
mailing list