Skip to content

Commit

Permalink
[clang][Sema] Add missing scope flags to Scope::dumpImpl (#94529)
Browse files Browse the repository at this point in the history
There were a handlful of scope flags that were not handled in the dump
function, which would then lead to an assert.
  • Loading branch information
kparzysz authored Jun 6, 2024
1 parent b025d69 commit c5c530f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/lib/Sema/Scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ void Scope::dumpImpl(raw_ostream &OS) const {
{CompoundStmtScope, "CompoundStmtScope"},
{ClassInheritanceScope, "ClassInheritanceScope"},
{CatchScope, "CatchScope"},
{ConditionVarScope, "ConditionVarScope"},
{OpenMPOrderClauseScope, "OpenMPOrderClauseScope"},
{LambdaScope, "LambdaScope"},
{OpenACCComputeConstructScope, "OpenACCComputeConstructScope"},
{TypeAliasScope, "TypeAliasScope"},
{FriendScope, "FriendScope"},
};

Expand Down

0 comments on commit c5c530f

Please sign in to comment.