[clang] [Clang] Skip invalid fields when synthesizing defaulted comparisons (PR #221570)

Shengxin Pei via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 7 06:22:22 PDT 2026


================
@@ -8203,6 +8203,9 @@ class DefaultedComparisonVisitor {
       //   Unnamed bit-fields are not members ...
       if (Field->isUnnamedBitField())
         continue;
+      // Skip invalid fields; they have already been diagnosed.
----------------
TPPPP72 wrote:

This change is quite obvious, so in my view, this comment isn't necessary.

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


More information about the cfe-commits mailing list