projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e056f5c
)
Hey, why not just make 'new ReturnInst(BB)' DTRT?
author
Chris Lattner
<sabre@nondot.org>
Fri, 25 Jun 2004 23:10:30 +0000
(23:10 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/iTerminators.h
b/include/llvm/iTerminators.h
index b1c69c28192d264f496895ff9b9c7087830701eb..0d1e62aa4b7644849134f12d5c00cbef751718f2 100644
(file)
--- 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); }