mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
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:
parent
e056f5c8e2
commit
98ebce1a6f
@ -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); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user