miscco added inline comments.
================ Comment at: clang/lib/Sema/SemaInit.cpp:1013 - auto *ParentRD = - Entity.getParent()->getType()->castAs<RecordType>()->getDecl(); - if (CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(ParentRD)) - if (CXXRD->getNumBases()) - return false; + // Allows elide brace initialization for aggreagates with empty base + if (Entity.getKind() == InitializedEntity::EK_Base) { ---------------- There is a typo here `aggreagates` -> `aggregates` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100057/new/ https://reviews.llvm.org/D100057 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits