diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-24 19:27:49 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-24 19:27:49 +0000 |
commit | 6f2d25e441dd4d0d6057cdffb029e5559c4bf6ee (patch) | |
tree | 6b7052524918eb27283cd2338fc0a2361afb976c /clang/lib/Sema/SemaExprCXX.cpp | |
parent | c8654eb64e92368cc40979381e411bea886bab32 (diff) | |
download | bcm5719-llvm-6f2d25e441dd4d0d6057cdffb029e5559c4bf6ee.tar.gz bcm5719-llvm-6f2d25e441dd4d0d6057cdffb029e5559c4bf6ee.zip |
More cleanup of argument call collection.
llvm-svn: 89789
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 4800a1df4a3..4ad62f73119 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -407,9 +407,11 @@ Sema::BuildCXXNew(SourceLocation StartLoc, bool UseGlobal, // Add default arguments, if any. const FunctionProtoType *Proto = OperatorNew->getType()->getAs<FunctionProtoType>(); + VariadicCallType CallType = + Proto->isVariadic() ? VariadicFunction : VariadicDoesNotApply; bool Invalid = GatherArgumentsForCall(PlacementLParen, OperatorNew, Proto, 1, PlaceArgs, NumPlaceArgs, - AllPlaceArgs); + AllPlaceArgs, 0, CallType); if (Invalid) return ExprError(); |