Hey, why not just make 'new ReturnInst(BB)' DTRT?
authorChris Lattner <sabre@nondot.org>
Fri, 25 Jun 2004 23:10:30 +0000 (23:10 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 25 Jun 2004 23:10:30 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14422 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/iTerminators.h

index b1c69c28192d264f496895ff9b9c7087830701eb..0d1e62aa4b7644849134f12d5c00cbef751718f2 100644 (file)
@@ -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); }