================ @@ -6496,6 +6496,17 @@ static bool canPerformArrayCopy(const InitializedEntity &Entity) { return false; } +static const FieldDecl *GetConstField(const RecordDecl *RD) { ---------------- erichkeane wrote:
Ah, just `assert(!LangOpts.CPlusPlus)` would be enough, but just `assert(!isa<CXXRecordDecl>(RD))` is as well (since all recorddecls in C++ mode are CXXRecordDecl) https://github.com/llvm/llvm-project/pull/137166 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits