We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce96b9 commit f6f0526Copy full SHA for f6f0526
clang/lib/Sema/JumpDiagnostics.cpp
@@ -786,8 +786,7 @@ void JumpScopeChecker::VerifyIndirectJumps() {
786
if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt())))
787
continue;
788
unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()];
789
- if (!TargetScopes.contains(LabelScope))
790
- TargetScopes[LabelScope] = TheLabel;
+ TargetScopes.try_emplace(LabelScope, TheLabel);
791
}
792
793
// For each target scope, make sure it's trivially reachable from
0 commit comments