From 98ebce1a6fe0972bd90f941e64a7ee4267a791c7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 25 Jun 2004 23:10:30 +0000 Subject: [PATCH] Hey, why not just make 'new ReturnInst(BB)' DTRT? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14422 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/iTerminators.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index b1c69c28192..0d1e62aa4b7 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -58,6 +58,9 @@ public: : TerminatorInst(Instruction::Ret, InsertAtEnd) { init(RetVal); } + ReturnInst(BasicBlock *InsertAtEnd) + : TerminatorInst(Instruction::Ret, InsertAtEnd) { + } virtual Instruction *clone() const { return new ReturnInst(*this); }