From 0ea5f0022615b65f67424bfb12d6ddec46fc5011 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 14 Jul 2015 16:38:30 +0000 Subject: [PATCH] Add default value for Args parameter of IRBuilder::CreateCall Convenient for calls to zero-argument functions. Patch by servuswiegehtz at yahoo.de git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242159 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/IRBuilder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 4913e4c376d..e38a72a0666 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -1464,7 +1464,7 @@ public: return Insert(PHINode::Create(Ty, NumReservedValues), Name); } - CallInst *CreateCall(Value *Callee, ArrayRef Args, + CallInst *CreateCall(Value *Callee, ArrayRef Args = {}, const Twine &Name = "") { return Insert(CallInst::Create(Callee, Args), Name); }