From 250aada4b96c0dcc7bcf6085106871af1271f39d Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 16 Aug 2009 05:13:48 +0000 Subject: AddInitializerToDecl can't take a FullExprArg. Make it take an ExprArg, and create the CXXExprWithTemporaries before setting the initializer on the VarDecl. llvm-svn: 79176 --- clang/lib/Sema/Sema.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index d17e2f14989..d3bdec8f39e 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -503,7 +503,7 @@ public: // argument locations. llvm::DenseMap UnparsedDefaultArgLocs; - virtual void AddInitializerToDecl(DeclPtrTy dcl, FullExprArg init); + virtual void AddInitializerToDecl(DeclPtrTy dcl, ExprArg init); void AddInitializerToDecl(DeclPtrTy dcl, ExprArg init, bool DirectInit); void ActOnUninitializedDecl(DeclPtrTy dcl, bool TypeContainsUndeducedAuto); virtual void SetDeclDeleted(DeclPtrTy dcl, SourceLocation DelLoc); @@ -1689,15 +1689,17 @@ public: CXXConstructorDecl *Constructor, QualType DeclInitType, Expr **Exprs, unsigned NumExprs); - + + Expr *BuildCXXConstructExpr(QualType DeclInitType, + CXXConstructorDecl *Constructor, + Expr **Exprs, unsigned NumExprs); + /// BuildCXXConstructExpr - Creates a complete call to a constructor, /// including handling of its default argument expressions. Expr *BuildCXXConstructExpr(QualType DeclInitType, CXXConstructorDecl *Constructor, bool Elidable, Expr **Exprs, unsigned NumExprs); - - Expr *BuildCXXCopyConstructExpr(Expr *Expr); /// FinalizeVarWithDestructor - Prepare for calling destructor on the /// constructed variable. -- cgit v1.2.3