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
This commit is contained in:
David Blaikie 2015-07-14 16:38:30 +00:00
parent 52ed774c83
commit 0ea5f00226

View File

@ -1464,7 +1464,7 @@ public:
return Insert(PHINode::Create(Ty, NumReservedValues), Name);
}
CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Args,
CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Args = {},
const Twine &Name = "") {
return Insert(CallInst::Create(Callee, Args), Name);
}