================
@@ -2937,6 +2937,8 @@ InitListChecker::CheckDesignatedInitializer(const
InitializedEntity &Entity,
}
FieldDecl *KnownField = D->getFieldDecl();
+ if (KnownField && KnownField->getParent() != RD)
+ KnownField = nullptr;
----------------
zyn0217 wrote:
We need some comments/explanation for this workaround.
If this is related to cache, is it possible for us to fix that instead?
https://github.com/llvm/llvm-project/pull/167159
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits