diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-05 17:03:54 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-05 17:03:54 +0000 |
commit | b2c352ed5586cf869a5dad87a528b9ac000d2fae (patch) | |
tree | 3f5d0e6df985e5896e4cac9ce6625b72a3c361d9 /lib/Sema/SemaInit.cpp | |
parent | 8e9ef0d87dad25f02e5abc6facf528778236115a (diff) |
Patch to improve ir-gen for constructors with default argument
expressions and a test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index c976c115c3..a92f7f4a53 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -177,8 +177,8 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType, if (!Constructor) return true; - Init = CXXConstructExpr::Create(Context, DeclType, Constructor, false, - &Init, 1); + Init = BuildCXXConstructExpr(Context, + DeclType, Constructor, false, &Init, 1); return false; } |