[llvm-commits] CVS: llvm/include/llvm/iTerminators.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 25 18:11:01 PDT 2004
Changes in directory llvm/include/llvm:
iTerminators.h updated: 1.44 -> 1.45
---
Log message:
Hey, why not just make 'new ReturnInst(BB)' DTRT?
---
Diffs of the changes: (+3 -0)
Index: llvm/include/llvm/iTerminators.h
diff -u llvm/include/llvm/iTerminators.h:1.44 llvm/include/llvm/iTerminators.h:1.45
--- llvm/include/llvm/iTerminators.h:1.44 Fri Jun 25 18:06:57 2004
+++ llvm/include/llvm/iTerminators.h Fri Jun 25 18:10:30 2004
@@ -58,6 +58,9 @@
: TerminatorInst(Instruction::Ret, InsertAtEnd) {
init(RetVal);
}
+ ReturnInst(BasicBlock *InsertAtEnd)
+ : TerminatorInst(Instruction::Ret, InsertAtEnd) {
+ }
virtual Instruction *clone() const { return new ReturnInst(*this); }
More information about the llvm-commits
mailing list