diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-28 00:22:11 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-28 00:22:11 +0000 |
commit | cbe875a507102d8ff7a2b3a2372323fe7a848a36 (patch) | |
tree | 4baf9522f8cac0e947c851b475089df144e92e12 /clang/lib/CodeGen/CGExprCXX.cpp | |
parent | 4f1a54a41abf01c0b907b62568ede8bf646f8ee3 (diff) | |
download | bcm5719-llvm-cbe875a507102d8ff7a2b3a2372323fe7a848a36.tar.gz bcm5719-llvm-cbe875a507102d8ff7a2b3a2372323fe7a848a36.zip |
Kill one of EmitCallArgs overloads. NFC.
llvm-svn: 216635
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprCXX.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp index 6cec0b8fd25..7149cb70f4f 100644 --- a/clang/lib/CodeGen/CGExprCXX.cpp +++ b/clang/lib/CodeGen/CGExprCXX.cpp @@ -1232,15 +1232,13 @@ llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { llvm::Value *allocSize = EmitCXXNewAllocSize(*this, E, minElements, numElements, allocSizeWithoutCookie); - + allocatorArgs.add(RValue::get(allocSize), sizeType); // We start at 1 here because the first argument (the allocation size) // has already been emitted. - EmitCallArgs(allocatorArgs, allocatorType->isVariadic(), - allocatorType->param_type_begin() + 1, - allocatorType->param_type_end(), E->placement_arg_begin(), - E->placement_arg_end()); + EmitCallArgs(allocatorArgs, allocatorType, E->placement_arg_begin(), + E->placement_arg_end(), /*ParamsToSkip*/ 1); // Emit the allocation call. If the allocator is a global placement // operator, just "inline" it directly. |