File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6496,13 +6496,13 @@ static bool canPerformArrayCopy(const InitializedEntity &Entity) {
64966496 return false ;
64976497}
64986498
6499- static const FieldDecl *GetConstField (const RecordDecl *RD) {
6499+ static const FieldDecl *getConstField (const RecordDecl *RD) {
65006500 for (const FieldDecl *FD : RD->fields ()) {
65016501 QualType QT = FD->getType ();
65026502 if (QT.isConstQualified ())
65036503 return FD;
65046504 if (const auto *RD = QT->getAsRecordDecl ())
6505- return GetConstField (RD);
6505+ return getConstField (RD);
65066506 }
65076507 return nullptr ;
65086508}
@@ -6587,7 +6587,7 @@ void InitializationSequence::InitializeFrom(Sema &S,
65876587 // then we want to diagnose those as being uninitialized if there is no
65886588 // initializer present.
65896589 if (!Initializer) {
6590- if (const FieldDecl *FD = GetConstField (Rec)) {
6590+ if (const FieldDecl *FD = getConstField (Rec)) {
65916591 unsigned DiagID = diag::warn_default_init_const_unsafe;
65926592 if (Var->getStorageDuration () == SD_Static ||
65936593 Var->getStorageDuration () == SD_Thread)
You can’t perform that action at this time.
0 commit comments