Add default value for Args parameter of IRBuilder::CreateCall
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 14 Jul 2015 16:38:30 +0000 (16:38 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 14 Jul 2015 16:38:30 +0000 (16:38 +0000)
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

index 4913e4c..e38a72a 100644 (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);
   }