mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Gardening] Canonicalize usages of ASTContext::Stats
This commit is contained in:
@@ -1312,9 +1312,10 @@ void ConstraintGraph::optimize() {
|
||||
void ConstraintGraph::incrementConstraintsPerContractionCounter() {
|
||||
SWIFT_FUNC_STAT;
|
||||
auto &context = CS.getASTContext();
|
||||
if (context.Stats)
|
||||
context.Stats->getFrontendCounters()
|
||||
if (auto *Stats = context.Stats) {
|
||||
Stats->getFrontendCounters()
|
||||
.NumConstraintsConsideredForEdgeContraction++;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark Debugging output
|
||||
|
||||
Reference in New Issue
Block a user