From: David Blaikie Date: Tue, 14 Jul 2015 16:38:30 +0000 (+0000) Subject: Add default value for Args parameter of IRBuilder::CreateCall X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c28708bcb069d90baaa329bbc87c1cac02e8e4ff;p=platform%2Fupstream%2Fllvm.git Add default value for Args parameter of IRBuilder::CreateCall Convenient for calls to zero-argument functions. Patch by servuswiegehtz at yahoo.de llvm-svn: 242159 --- diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h index 4913e4c..e38a72a 100644 --- a/llvm/include/llvm/IR/IRBuilder.h +++ b/llvm/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); }