diff options
Diffstat (limited to 'examples/HowToUseJIT')
-rw-r--r-- | examples/HowToUseJIT/HowToUseJIT.cpp | 4 |
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. |