Skip to content

Commit c5c530f

Browse files
authored
[clang][Sema] Add missing scope flags to Scope::dumpImpl (#94529)
There were a handlful of scope flags that were not handled in the dump function, which would then lead to an assert.
1 parent b025d69 commit c5c530f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Sema/Scope.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ void Scope::dumpImpl(raw_ostream &OS) const {
228228
{CompoundStmtScope, "CompoundStmtScope"},
229229
{ClassInheritanceScope, "ClassInheritanceScope"},
230230
{CatchScope, "CatchScope"},
231+
{ConditionVarScope, "ConditionVarScope"},
232+
{OpenMPOrderClauseScope, "OpenMPOrderClauseScope"},
233+
{LambdaScope, "LambdaScope"},
231234
{OpenACCComputeConstructScope, "OpenACCComputeConstructScope"},
235+
{TypeAliasScope, "TypeAliasScope"},
232236
{FriendScope, "FriendScope"},
233237
};
234238

0 commit comments

Comments
 (0)