[llvm-branch-commits] [libcxxabi] [libc++abi] Only store a single dst_ptr (PR #245190)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 23 03:14:41 PST 2026


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,cpp -- libcxxabi/src/private_typeinfo.cpp libcxxabi/src/private_typeinfo.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/libcxxabi/src/private_typeinfo.cpp b/libcxxabi/src/private_typeinfo.cpp
index 074550812..a5bdb17ea 100644
--- a/libcxxabi/src/private_typeinfo.cpp
+++ b/libcxxabi/src/private_typeinfo.cpp
@@ -893,7 +893,7 @@ result __class_type_info::process_static_type_above_dst(
   // static ptr.
   if (info->dst_ptr == 0) {
     // First time here
-    info->dst_ptr = dst_ptr;
+    info->dst_ptr                       = dst_ptr;
     info->path_dst_ptr_to_static_ptr    = path_below;
     // If there is only one dst_type in the entire tree and the path from
     //    there to here is public then we are done!

``````````

</details>


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


More information about the llvm-branch-commits mailing list