[compiler-rt] [TySan] Fix struct access with different bases (PR #120412)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 08:10:46 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 35a392553d790064566d4430f249b1e740052dfa e8b5ab27e30138ead68ef824d2b08aef5510ce7c --extensions cpp -- compiler-rt/test/tysan/struct-offset-different-base.cpp compiler-rt/lib/tysan/tysan.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/tysan/struct-offset-different-base.cpp b/compiler-rt/test/tysan/struct-offset-different-base.cpp
index 4b14c51aaa..862595de8d 100644
--- a/compiler-rt/test/tysan/struct-offset-different-base.cpp
+++ b/compiler-rt/test/tysan/struct-offset-different-base.cpp
@@ -17,7 +17,7 @@ struct inner2 {
};
void init_inner1(inner1 *iPtr) { iPtr->i = 200; }
-void init_inner2(inner2 *iPtr) {
+void init_inner2(inner2 *iPtr) {
iPtr->i = 400;
iPtr->endBuffer = 413.0f;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/120412
More information about the llvm-commits
mailing list