[llvm-commits] CVS: llvm/examples/HowToUseJIT/HowToUseJIT.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 12 22:06:42 PST 2007
Changes in directory llvm/examples/HowToUseJIT:
HowToUseJIT.cpp updated: 1.15 -> 1.16
---
Log message:
eliminate vector-related ctors
---
Diffs of the changes: (+1 -3)
HowToUseJIT.cpp | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
Index: llvm/examples/HowToUseJIT/HowToUseJIT.cpp
diff -u llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.15 llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.16
--- llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.15 Fri Jan 19 16:45:05 2007
+++ llvm/examples/HowToUseJIT/HowToUseJIT.cpp Tue Feb 13 00:06:26 2007
@@ -89,9 +89,7 @@
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.
More information about the llvm-commits
mailing list