From: Ted Kremenek Date: Tue, 6 Jan 2009 22:16:26 +0000 (+0000) Subject: Remove redunant (and incorrect) call to SourceManager::PrintStats(). This would... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b789103464f55639384cb468e7ed90a8268c84f4;p=clang Remove redunant (and incorrect) call to SourceManager::PrintStats(). This would be called after a SourceManager was 'cleared', so it printed bogus results. Moreover, these stats are already printed earlier in the code path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61825 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/clang.cpp b/Driver/clang.cpp index cb85eaee0f..1b29671aa9 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -1577,9 +1577,6 @@ int main(int argc, char **argv) { ProcessInputFile(*PP, PPFactory, InFile, PCH ? GeneratePCH : ProgAction); HeaderInfo.ClearFileInfo(); - - if (Stats) - SourceMgr->PrintStats(); } }