diff options
author | David Greene <greened@obbligato.org> | 2007-08-01 03:43:44 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2007-08-01 03:43:44 +0000 |
commit | 17a5dfe6f7c93bcfe69cf8b6cfe4ae5fce39cd95 (patch) | |
tree | 3e5f4a9ad5f1f547e915d12b7299a6365648cba8 /llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp | |
parent | bf2f38693e23759931c387222ed8636ecbe2f2e0 (diff) | |
download | bcm5719-llvm-17a5dfe6f7c93bcfe69cf8b6cfe4ae5fce39cd95.tar.gz bcm5719-llvm-17a5dfe6f7c93bcfe69cf8b6cfe4ae5fce39cd95.zip |
New CallInst interface to address GLIBCXX_DEBUG errors caused by
indexing an empty std::vector.
Updates to all clients.
llvm-svn: 40660
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp b/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp index 54ea8036de6..91b8ec2c5c9 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp @@ -54,7 +54,7 @@ void llvm::InsertProfilingInitCall(Function *MainFn, const char *FnName, } Args[3] = ConstantInt::get(Type::Int32Ty, NumElements); - Instruction *InitCall = new CallInst(InitFn, &Args[0], Args.size(), + Instruction *InitCall = new CallInst(InitFn, Args.begin(), Args.end(), "newargc", InsertPos); // If argc or argv are not available in main, just pass null values in. |