@@ -3868,7 +3868,7 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
38683868 bool IsFinalSpelledSealed = false ;
38693869 bool IsAbstract = false ;
38703870 SourceLocation TriviallyRelocatable;
3871- SourceLocation Replacable ;
3871+ SourceLocation Replaceable ;
38723872
38733873 // Parse the optional 'final' keyword.
38743874 if (getLangOpts ().CPlusPlus && Tok.is (tok::identifier)) {
@@ -3885,19 +3885,19 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
38853885 ParseCXX2CTriviallyRelocatableSpecifier (TriviallyRelocatable);
38863886 }
38873887 continue ;
3888- } else if (isCXX2CReplaceableKeyword (Tok)) {
3889- if (Replacable.isValid ()) {
3888+ }
3889+ if (isCXX2CReplaceableKeyword (Tok)) {
3890+ if (Replaceable.isValid ()) {
38903891 auto Skipped = Tok;
38913892 ConsumeToken ();
38923893 Diag (Skipped, diag::err_duplicate_class_relocation_specifier)
3893- << /* replaceable*/ 1 << Replacable ;
3894+ << /* replaceable*/ 1 << Replaceable ;
38943895 } else {
3895- ParseCXX2CReplaceableSpecifier (Replacable );
3896+ ParseCXX2CReplaceableSpecifier (Replaceable );
38963897 }
38973898 continue ;
3898- } else {
3899- break ;
39003899 }
3900+ break ;
39013901 }
39023902 if (isCXX11FinalKeyword ()) {
39033903 if (FinalLoc.isValid ()) {
@@ -3935,7 +3935,7 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
39353935 Diag (FinalLoc, diag::ext_warn_gnu_final);
39363936 }
39373937 assert ((FinalLoc.isValid () || AbstractLoc.isValid () ||
3938- TriviallyRelocatable.isValid () || Replacable .isValid ()) &&
3938+ TriviallyRelocatable.isValid () || Replaceable .isValid ()) &&
39393939 " not a class definition" );
39403940
39413941 // Parse any C++11 attributes after 'final' keyword.
@@ -4010,7 +4010,7 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
40104010 if (TagDecl)
40114011 Actions.ActOnStartCXXMemberDeclarations (
40124012 getCurScope (), TagDecl, FinalLoc, IsFinalSpelledSealed, IsAbstract,
4013- TriviallyRelocatable, Replacable , T.getOpenLocation ());
4013+ TriviallyRelocatable, Replaceable , T.getOpenLocation ());
40144014
40154015 // C++ 11p3: Members of a class defined with the keyword class are private
40164016 // by default. Members of a class defined with the keywords struct or union
0 commit comments