[clang] Mark union member destructors referenced (PR #128866)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 04:17:14 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 3f648992bf317a3496c4d137374d2c1532423d1c 484ff7a53ab700fda30ee90f739bb2573f41c851 --extensions cpp -- clang/lib/Sema/SemaDeclCXX.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index ce7927dedd..a5624774b8 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -5793,7 +5793,8 @@ Sema::MarkBaseAndMemberDestructorsReferenced(SourceLocation Location,
if (FieldClassDecl->hasIrrelevantDestructor())
continue;
// The destructor for an implicit anonymous union member is never invoked.
- if (FieldClassDecl->isUnion() && FieldClassDecl->isAnonymousStructOrUnion()) {
+ if (FieldClassDecl->isUnion() &&
+ FieldClassDecl->isAnonymousStructOrUnion()) {
MarkBaseAndMemberDestructorsReferenced(Location, FieldClassDecl);
continue;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/128866
More information about the cfe-commits
mailing list