Eliminate DeclPtrTy() arguments to ActOnDeclarator that are just a very, very weird way to pass "false". No functionality change
llvm-svn: 74007
This commit is contained in:
parent
8cf2021012
commit
4a75be24c9
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue