[clang] [TBAA] Emit distinct TBAA tags for pointers with different depths,types. (PR #76612)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 13:10:33 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 88e9c56990c8f892b5f14b844d1934bb8fcf092a 16437fc038ba9bc638a3e0b1efda4fb219e2bcbc --extensions c,cpp -- clang/lib/CodeGen/CodeGenTBAA.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/test/CodeGen/sanitize-metadata-nosanitize.c clang/test/CodeGen/tbaa-pointers.c clang/test/CodeGenCXX/attr-likelihood-iteration-stmt.cpp clang/test/OpenMP/nvptx_target_parallel_reduction_codegen_tbaa_PR46146.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 5e97beb56e..6019ae5975 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5725,7 +5725,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
                     options::OPT_fno_strict_aliasing, !IsWindowsMSVC))
     CmdArgs.push_back("-relaxed-aliasing");
   if (Args.hasFlag(options::OPT_fpointer_tbaa, options::OPT_fno_pointer_tbaa,
-                    false))
+                   false))
     CmdArgs.push_back("-pointer-tbaa");
   if (!Args.hasFlag(options::OPT_fstruct_path_tbaa,
                     options::OPT_fno_struct_path_tbaa, true))

``````````

</details>


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


More information about the cfe-commits mailing list