summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ADCE.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-08-01 03:43:44 +0000
committerDavid Greene <greened@obbligato.org>2007-08-01 03:43:44 +0000
commit17a5dfe6f7c93bcfe69cf8b6cfe4ae5fce39cd95 (patch)
tree3e5f4a9ad5f1f547e915d12b7299a6365648cba8 /llvm/lib/Transforms/Scalar/ADCE.cpp
parentbf2f38693e23759931c387222ed8636ecbe2f2e0 (diff)
downloadbcm5719-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/Scalar/ADCE.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ADCE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp
index 4968fc9ed7b..d5201b870fc 100644
--- a/llvm/lib/Transforms/Scalar/ADCE.cpp
+++ b/llvm/lib/Transforms/Scalar/ADCE.cpp
@@ -194,7 +194,7 @@ bool ADCE::doADCE() {
// The function cannot unwind. Convert it to a call with a branch
// after it to the normal destination.
SmallVector<Value*, 8> Args(II->op_begin()+3, II->op_end());
- CallInst *NewCall = new CallInst(F, &Args[0], Args.size(), "", II);
+ CallInst *NewCall = new CallInst(F, Args.begin(), Args.end(), "", II);
NewCall->takeName(II);
NewCall->setCallingConv(II->getCallingConv());
II->replaceAllUsesWith(NewCall);
OpenPOWER on IntegriCloud