Skip to content

Commit d540682

Browse files
committed
Parse: Use ScopeKind::EnumBody not ScopeKind::ClassBody for enum body
1 parent 5ae2f76 commit d540682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5740,7 +5740,7 @@ ParserResult<EnumDecl> Parser::parseDeclEnum(ParseDeclOptions Flags,
57405740
RBLoc = LBLoc;
57415741
Status.setIsParseError();
57425742
} else {
5743-
Scope S(this, ScopeKind::ClassBody);
5743+
Scope S(this, ScopeKind::EnumBody);
57445744
ParseDeclOptions Options(PD_HasContainerType | PD_AllowEnumElement | PD_InEnum);
57455745
if (canDelayMemberDeclParsing()) {
57465746
if (delayParsingDeclList(LBLoc, RBLoc, PosBeforeLB, Options, ED))

0 commit comments

Comments
 (0)