[clang] [TBAA] Don't emit pointer-tbaa for void pointers. (PR #122116)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 03:54:04 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 dcdf44aca7be8a3e8f36d308b7fd5e5979140574 471ed86de267fb7b99b49d6187dc20d031eb4b7f --extensions cpp,c -- clang/lib/CodeGen/CodeGenTBAA.cpp clang/test/CodeGen/tbaa-pointers.c clang/unittests/CodeGen/TBAAMetadataTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/CodeGen/TBAAMetadataTest.cpp b/clang/unittests/CodeGen/TBAAMetadataTest.cpp
index 35e68a577e..f05c9787c6 100644
--- a/clang/unittests/CodeGen/TBAAMetadataTest.cpp
+++ b/clang/unittests/CodeGen/TBAAMetadataTest.cpp
@@ -117,12 +117,9 @@ TEST(TBAAMetadataTest, BasicTypes) {
ASSERT_TRUE(I);
I = matchNext(I,
- MInstruction(Instruction::Store,
- MValType(PointerType::getUnqual(Compiler.Context)),
- MMTuple(
- AnyPtr,
- MSameAs(0),
- MConstInt(0))));
+ MInstruction(Instruction::Store,
+ MValType(PointerType::getUnqual(Compiler.Context)),
+ MMTuple(AnyPtr, MSameAs(0), MConstInt(0))));
ASSERT_TRUE(I);
I = matchNext(I,
``````````
</details>
https://github.com/llvm/llvm-project/pull/122116
More information about the cfe-commits
mailing list