[cfe-commits] r115271 - /cfe/trunk/lib/Analysis/CFG.cpp

Zhongxing Xu xuzhongxing at gmail.com
Thu Sep 30 20:09:09 PDT 2010


Author: zhongxingxu
Date: Thu Sep 30 22:09:09 2010
New Revision: 115271

URL: http://llvm.org/viewvc/llvm-project?rev=115271&view=rev
Log:
Use default augument.

Modified:
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=115271&r1=115270&r2=115271&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Thu Sep 30 22:09:09 2010
@@ -518,13 +518,13 @@
   if (LabelStmt* LS = dyn_cast<LabelStmt>(S))
     S = LS->getSubStmt();
   if (DeclStmt* DS = dyn_cast<DeclStmt>(S))
-    addLocalScopeForDeclStmt(DS, 0);
+    addLocalScopeForDeclStmt(DS);
 }
 
 /// addLocalScopeForDeclStmt - Add LocalScope for declaration statement. Will
 /// reuse Scope if not NULL.
 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt* DS,
-    LocalScope* Scope) {
+                                                 LocalScope* Scope) {
   if (!BuildOpts.AddImplicitDtors)
     return Scope;
 
@@ -540,7 +540,7 @@
 /// create add scope for automatic objects and temporary objects bound to
 /// const reference. Will reuse Scope if not NULL.
 LocalScope* CFGBuilder::addLocalScopeForVarDecl(VarDecl* VD,
-    LocalScope* Scope) {
+                                                LocalScope* Scope) {
   if (!BuildOpts.AddImplicitDtors)
     return Scope;
 





More information about the cfe-commits mailing list