From: Kovarththanan Rajaratnam Date: Sun, 29 Nov 2009 14:50:29 +0000 (+0000) Subject: Don't call Decl::CollectingStats(false) and Stmt::CollectingStats(false). When called... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d8a7828d655d03a35407d5e063072bf947e0a40;p=clang Don't call Decl::CollectingStats(false) and Stmt::CollectingStats(false). When called with false these functions return whether statistics are enabled. They don't change any state. Since we're not using the return value avoid calling them in the first place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp index 7b223a8fa3..7c7df4bb61 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -90,8 +90,5 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, Decl::PrintStats(); Stmt::PrintStats(); Consumer->PrintStats(); - - Decl::CollectingStats(false); - Stmt::CollectingStats(false); } }