mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +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) {
|
: TerminatorInst(Instruction::Ret, InsertAtEnd) {
|
||||||
init(RetVal);
|
init(RetVal);
|
||||||
}
|
}
|
||||||
|
ReturnInst(BasicBlock *InsertAtEnd)
|
||||||
|
: TerminatorInst(Instruction::Ret, InsertAtEnd) {
|
||||||
|
}
|
||||||
|
|
||||||
virtual Instruction *clone() const { return new ReturnInst(*this); }
|
virtual Instruction *clone() const { return new ReturnInst(*this); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user