summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
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/ExecutionEngine
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/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 926142f4637..d6b080e1a57 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -224,7 +224,7 @@ GenericValue JIT::runFunction(Function *F,
Args.push_back(C);
}
- CallInst *TheCall = new CallInst(F, &Args[0], Args.size(), "", StubBB);
+ CallInst *TheCall = new CallInst(F, Args.begin(), Args.end(), "", StubBB);
TheCall->setTailCall();
if (TheCall->getType() != Type::VoidTy)
new ReturnInst(TheCall, StubBB); // Return result of the call.
OpenPOWER on IntegriCloud