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:
@@ -477,8 +477,8 @@ ModuleFile::readConformanceChecked(llvm::BitstreamCursor &Cursor,
|
||||
fatalIfUnexpected(Cursor.advance(AF_DontPopBlockAtEnd));
|
||||
assert(next.Kind == llvm::BitstreamEntry::Record);
|
||||
|
||||
if (getContext().Stats)
|
||||
getContext().Stats->getFrontendCounters().NumConformancesDeserialized++;
|
||||
if (auto *Stats = getContext().Stats)
|
||||
Stats->getFrontendCounters().NumConformancesDeserialized++;
|
||||
|
||||
unsigned kind = fatalIfUnexpected(Cursor.readRecord(next.ID, scratch));
|
||||
switch (kind) {
|
||||
|
||||
Reference in New Issue
Block a user