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.
2 parents c001756 + 244a41b commit 41928beCopy full SHA for 41928be
lib/Sema/TypeCheckEffects.cpp
@@ -2651,15 +2651,10 @@ class CheckEffectsCoverage : public EffectsHandlingWalker<CheckEffectsCoverage>
2651
Expr *expr = E.dyn_cast<Expr*>();
2652
Expr *anchor = walkToAnchor(expr, parentMap,
2653
CurContext.isWithinInterpolatedString());
2654
-
2655
- auto key = uncoveredAsync.find(anchor);
2656
- if (key == uncoveredAsync.end()) {
2657
- uncoveredAsync.insert({anchor, {}});
+ if (uncoveredAsync.find(anchor) == uncoveredAsync.end())
2658
errorOrder.push_back(anchor);
2659
- }
2660
- uncoveredAsync[anchor].emplace_back(
2661
- *expr,
2662
- classification.getAsyncReason());
+ uncoveredAsync[anchor].emplace_back(*expr,
+ classification.getAsyncReason());
2663
}
2664
2665
0 commit comments