diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-25 23:10:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-25 23:10:30 +0000 |
commit | 98ebce1a6fe0972bd90f941e64a7ee4267a791c7 (patch) | |
tree | 5ff2d6fe6bd2fe3dde462e8b3b810c5684b559c6 | |
parent | e056f5c8e20b2a44e71e8303c5fa183857e9b476 (diff) | |
download | external_llvm-98ebce1a6fe0972bd90f941e64a7ee4267a791c7.zip external_llvm-98ebce1a6fe0972bd90f941e64a7ee4267a791c7.tar.gz external_llvm-98ebce1a6fe0972bd90f941e64a7ee4267a791c7.tar.bz2 |
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
-rw-r--r-- | include/llvm/iTerminators.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index b1c69c2..0d1e62a 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); } |