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:
0c2192d
)
[IR] Update CreateCatchRet to take a return value
author
David Majnemer
<david.majnemer@gmail.com>
Sat, 15 Aug 2015 03:19:29 +0000
(
03:19
+0000)
committer
David Majnemer
<david.majnemer@gmail.com>
Sat, 15 Aug 2015 03:19:29 +0000
(
03:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245152
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 8d365a0cc9936ca869e96b60a08791e27d4b2921..265ef7a4a2c1a79647a593fe6954c9279e203d57 100644
(file)
--- a/
include/llvm/IR/IRBuilder.h
+++ b/
include/llvm/IR/IRBuilder.h
@@
-697,8
+697,8
@@
public:
return Insert(CleanupPadInst::Create(Ty, Args), Name);
}
- CatchReturnInst *CreateCatchRet(BasicBlock *BB) {
- return Insert(CatchReturnInst::Create(BB));
+ CatchReturnInst *CreateCatchRet(BasicBlock *BB
, Value *RetVal = nullptr
) {
+ return Insert(CatchReturnInst::Create(BB
, RetVal
));
}
UnreachableInst *CreateUnreachable() {