[llvm] r245152 - [IR] Update CreateCatchRet to take a return value
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 20:19:30 PDT 2015
Author: majnemer
Date: Fri Aug 14 22:19:29 2015
New Revision: 245152
URL: http://llvm.org/viewvc/llvm-project?rev=245152&view=rev
Log:
[IR] Update CreateCatchRet to take a return value
Modified:
llvm/trunk/include/llvm/IR/IRBuilder.h
Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=245152&r1=245151&r2=245152&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Fri Aug 14 22:19:29 2015
@@ -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() {
More information about the llvm-commits
mailing list