summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 06:06:26 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 06:06:26 +0000
commit680f2f016e6a6edbae21d9b37d91f5ab75a75660 (patch)
treed56ddf5c7f82ada949cec30d0a420b4998847eb7 /examples
parent10ac377f7cbcf722ca9dd46865526f667213af74 (diff)
downloadllvm-680f2f016e6a6edbae21d9b37d91f5ab75a75660.tar.gz
llvm-680f2f016e6a6edbae21d9b37d91f5ab75a75660.tar.bz2
llvm-680f2f016e6a6edbae21d9b37d91f5ab75a75660.tar.xz
eliminate vector-related ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/HowToUseJIT/HowToUseJIT.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/HowToUseJIT/HowToUseJIT.cpp b/examples/HowToUseJIT/HowToUseJIT.cpp
index 4709562935..8948b3ab1a 100644
--- a/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -89,9 +89,7 @@ int main() {
Value *Ten = ConstantInt::get(Type::Int32Ty, 10);
// Pass Ten to the call call:
- std::vector<Value*> Params;
- Params.push_back(Ten);
- CallInst *Add1CallRes = new CallInst(Add1F, Params, "add1", BB);
+ CallInst *Add1CallRes = new CallInst(Add1F, Ten, "add1", BB);
Add1CallRes->setTailCall(true);
// Create the return instruction and add it to the basic block.