summaryrefslogtreecommitdiff
path: root/examples/Kaleidoscope/Chapter5/toy.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-07-15 10:59:52 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-07-15 10:59:52 +0000
commit0bd9d3af54b62152355525bea7914bdef4600371 (patch)
tree86bdfb386f3d9603f112d0b548c77c7f15765bd7 /examples/Kaleidoscope/Chapter5/toy.cpp
parenta3efbb15ddd5aa9006564cd79086723640084878 (diff)
downloadllvm-0bd9d3af54b62152355525bea7914bdef4600371.tar.gz
llvm-0bd9d3af54b62152355525bea7914bdef4600371.tar.bz2
llvm-0bd9d3af54b62152355525bea7914bdef4600371.tar.xz
Convert CallInst and InvokeInst APIs to use ArrayRef. For the LLVM examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Kaleidoscope/Chapter5/toy.cpp')
-rw-r--r--examples/Kaleidoscope/Chapter5/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/Chapter5/toy.cpp b/examples/Kaleidoscope/Chapter5/toy.cpp
index 20a0d2b525..58ab6f3990 100644
--- a/examples/Kaleidoscope/Chapter5/toy.cpp
+++ b/examples/Kaleidoscope/Chapter5/toy.cpp
@@ -504,7 +504,7 @@ Value *CallExprAST::Codegen() {
if (ArgsV.back() == 0) return 0;
}
- return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
+ return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
}
Value *IfExprAST::Codegen() {