From 0bd9d3af54b62152355525bea7914bdef4600371 Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Fri, 15 Jul 2011 10:59:52 +0000 Subject: 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 --- examples/Kaleidoscope/Chapter7/toy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/Kaleidoscope/Chapter7') diff --git a/examples/Kaleidoscope/Chapter7/toy.cpp b/examples/Kaleidoscope/Chapter7/toy.cpp index 5e38979..63a7bca 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() { -- cgit v1.1