diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-13 02:10:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-13 02:10:56 +0000 |
commit | 93e985f1b17aef62d58e3198a4604f9f6cfe8d19 (patch) | |
tree | 899bcfb30d336050773f4d3e4637c393d8535b61 /lib/Transforms/Instrumentation/ProfilingUtils.cpp | |
parent | e433919686aee9c95207d93d85aeaca68a5b2546 (diff) |
Eliminate use of ctors that take vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilingUtils.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilingUtils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilingUtils.cpp b/lib/Transforms/Instrumentation/ProfilingUtils.cpp index d003f6ca91..071ca0dfdb 100644 --- a/lib/Transforms/Instrumentation/ProfilingUtils.cpp +++ b/lib/Transforms/Instrumentation/ProfilingUtils.cpp @@ -53,7 +53,8 @@ void llvm::InsertProfilingInitCall(Function *MainFn, const char *FnName, } Args[3] = ConstantInt::get(Type::Int32Ty, NumElements); - Instruction *InitCall = new CallInst(InitFn, Args, "newargc", InsertPos); + Instruction *InitCall = new CallInst(InitFn, &Args[0], Args.size(), + "newargc", InsertPos); // If argc or argv are not available in main, just pass null values in. Function::arg_iterator AI; |