projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52ed774
)
Add default value for Args parameter of IRBuilder::CreateCall
author
David Blaikie
<dblaikie@gmail.com>
Tue, 14 Jul 2015 16:38:30 +0000
(16:38 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/llvm/IR/IRBuilder.h
b/include/llvm/IR/IRBuilder.h
index 4913e4c376d6b6ec22c56b58dfab5017b3bb87e1..e38a72a06662f48dfd7d6b5b8a1fc5ceb6f59cb9 100644
(file)
--- 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<Value *> Args,
+ CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Args
= {}
,
const Twine &Name = "") {
return Insert(CallInst::Create(Callee, Args), Name);
}