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
This commit is contained in:
Chris Lattner 2004-06-25 23:10:30 +00:00
parent e056f5c8e2
commit 98ebce1a6f

View 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); }