================
@@ -5628,6 +5628,11 @@ class DesignatedInitExpr final
       FieldInfo.NameOrField = reinterpret_cast<uintptr_t>(FD);
     }
 
+    void clearFieldDecl() {
+      assert(isFieldDesignator() && "Only valid on a field designator");
----------------
Backl1ght wrote:

According to the definition, I think this is the only way to clear field decl 
of designator.

https://github.com/llvm/llvm-project/blob/545c3022d28164f5040036a7b515a85f74dbd5cc/clang/include/clang/AST/Expr.h#L5531-L5537

https://github.com/llvm/llvm-project/pull/167159
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to