]> granicus.if.org Git - clang/commitdiff
Eliminate DeclPtrTy() arguments to ActOnDeclarator that are just a very, very weird...
authorDouglas Gregor <dgregor@apple.com>
Tue, 23 Jun 2009 21:43:56 +0000 (21:43 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 23 Jun 2009 21:43:56 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74007 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp
lib/Sema/SemaExprCXX.cpp

index eba1d58d6024c876311adbc5e8b0f217466b006a..51a75b3146d1f861b112376cf25267bce58c8621 100644 (file)
@@ -3219,7 +3219,7 @@ NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
   CurContext = Context.getTranslationUnitDecl();
  
   FunctionDecl *FD = 
- dyn_cast<FunctionDecl>(ActOnDeclarator(TUScope, D, DeclPtrTy()).getAs<Decl>());
+ dyn_cast<FunctionDecl>(ActOnDeclarator(TUScope, D).getAs<Decl>());
   FD->setImplicit();
 
   CurContext = PrevDC;
index a567218eaa88bcc5cd2d90aa93d1963a20edc576..5777c81c4e9eded9c3d0696b85d8f7b9d96b51be 100644 (file)
@@ -771,7 +771,7 @@ Sema::ActOnCXXConditionDeclarationExpr(Scope *S, SourceLocation StartLoc,
       Diag(ED->getLocation(), diag::err_type_defined_in_condition);
   }
 
-  DeclPtrTy Dcl = ActOnDeclarator(S, D, DeclPtrTy());
+  DeclPtrTy Dcl = ActOnDeclarator(S, D);
   if (!Dcl)
     return ExprError();
   AddInitializerToDecl(Dcl, move(AssignExprVal), /*DirectInit=*/false);