From: David Majnemer Date: Sat, 15 Aug 2015 03:19:29 +0000 (+0000) Subject: [IR] Update CreateCatchRet to take a return value X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ac02960329cb48cd0ab8a29bf96a5a3f7e7b4dbd;p=oota-llvm.git [IR] Update CreateCatchRet to take a return value git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245152 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 8d365a0cc99..265ef7a4a2c 100644 --- 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() {