diff options
Diffstat (limited to 'examples/Kaleidoscope/Chapter7/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/Chapter7/toy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/Kaleidoscope/Chapter7/toy.cpp b/examples/Kaleidoscope/Chapter7/toy.cpp index 5e38979412..63a7bca29d 100644 --- a/examples/Kaleidoscope/Chapter7/toy.cpp +++ b/examples/Kaleidoscope/Chapter7/toy.cpp @@ -685,7 +685,7 @@ Value *BinaryExprAST::Codegen() { assert(F && "binary operator not found!"); Value *Ops[] = { L, R }; - return Builder.CreateCall(F, Ops, Ops+2, "binop"); + return Builder.CreateCall(F, Ops, "binop"); } Value *CallExprAST::Codegen() { @@ -704,7 +704,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() { |