[Gardening] Canonicalize usages of ASTContext::Stats

This commit is contained in:
Robert Widmann
2020-02-27 16:04:00 -08:00
parent ccf472d158
commit de72824b04
22 changed files with 65 additions and 45 deletions

View File

@@ -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) {