]> granicus.if.org Git - clang/commitdiff
Use default augument.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 1 Oct 2010 03:09:09 +0000 (03:09 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 1 Oct 2010 03:09:09 +0000 (03:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115271 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 7afdb02cea9c3dad0d505e6fbe42cf9bd8831b5e..1a7ae898c80097264ff4027ca7670710554c440a 100644 (file)
@@ -518,13 +518,13 @@ void CFGBuilder::addLocalScopeForStmt(Stmt* S) {
   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 @@ LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt* DS,
 /// 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;