[compiler-rt] [llvm] [nsan] Emit calls to optimized functions (PR #98900)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 22:42:18 PDT 2024
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 91722a4a13d808772edcdd5caad66a598a659655 cbf02ed2b81d3a10baee7248b89e46fee0888e2c --extensions cpp -- compiler-rt/lib/nsan/nsan.cpp compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp compiler-rt/test/sanitizer_common/TestCases/Posix/dump_registers.cpp llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/nsan/nsan.cpp b/compiler-rt/lib/nsan/nsan.cpp
index bfbc22bb80..13ef3f9da4 100644
--- a/compiler-rt/lib/nsan/nsan.cpp
+++ b/compiler-rt/lib/nsan/nsan.cpp
@@ -68,7 +68,7 @@ __nsan_copy_values(const u8 *daddr, const u8 *saddr, uptr size) {
__builtin_memmove((void *)GetShadowTypeAddrFor(daddr), \
GetShadowTypeAddrFor(saddr), N); \
__builtin_memmove((void *)GetShadowAddrFor(daddr), \
- GetShadowAddrFor(saddr), N * kShadowScale); \
+ GetShadowAddrFor(saddr), N *kShadowScale); \
}
NSAN_COPY_VALUES_N(4)
``````````
</details>
https://github.com/llvm/llvm-project/pull/98900
More information about the llvm-commits
mailing list