]> granicus.if.org Git - clang/commitdiff
Change CXXConstructExpr::Create to take a ConstructionKind.
authorAnders Carlsson <andersca@mac.com>
Sun, 2 May 2010 23:53:04 +0000 (23:53 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 2 May 2010 23:53:04 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102884 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ExprCXX.h
lib/AST/ExprCXX.cpp

index bef58277723d77d703b07e699a885a25b12cae85..f9ca78ad292d76e0b0c68d5b5e1282c2fd7e0543 100644 (file)
@@ -668,7 +668,7 @@ public:
                                   CXXConstructorDecl *D, bool Elidable,
                                   Expr **Args, unsigned NumArgs,
                                   bool ZeroInitialization = false,
-                                  bool BaseInitialization = false);
+                                  ConstructionKind ConstructKind = CK_Complete);
 
 
   CXXConstructorDecl* getConstructor() const { return Constructor; }
index 1b94aa0ca3a8205a2ba283ba07b40d15d1963676..2e03beb0f050aab4e19094c37c0b55915a9cb141 100644 (file)
@@ -471,11 +471,10 @@ CXXConstructExpr *CXXConstructExpr::Create(ASTContext &C, QualType T,
                                            CXXConstructorDecl *D, bool Elidable,
                                            Expr **Args, unsigned NumArgs,
                                            bool ZeroInitialization,
-                                           bool BaseInitialization) {
+                                           ConstructionKind ConstructKind) {
   return new (C) CXXConstructExpr(C, CXXConstructExprClass, T, Loc, D, 
                                   Elidable, Args, NumArgs, ZeroInitialization,
-                                  BaseInitialization ? CK_NonVirtualBase :
-                                  CK_Complete);
+                                  ConstructKind);
 }
 
 CXXConstructExpr::CXXConstructExpr(ASTContext &C, StmtClass SC, QualType T,