diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-08-16 05:13:48 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-08-16 05:13:48 +0000 |
| commit | 250aada4b96c0dcc7bcf6085106871af1271f39d (patch) | |
| tree | a3e4c1494bbd417732b1d5ec6c37a99d289ec305 /clang/lib/Sema/Sema.h | |
| parent | 8a4c35dd185feb72c95e6593a7393c7061d4a6cb (diff) | |
| download | bcm5719-llvm-250aada4b96c0dcc7bcf6085106871af1271f39d.tar.gz bcm5719-llvm-250aada4b96c0dcc7bcf6085106871af1271f39d.zip | |
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
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 10 |
1 files changed, 6 insertions, 4 deletions
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<ParmVarDecl *,SourceLocation> 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. |

