Eliminate AllocInst, which does nothing for us.

Swift SVN r6936
This commit is contained in:
John McCall
2013-08-06 07:31:38 +00:00
parent e3584068e8
commit adfba641a8
3 changed files with 14 additions and 26 deletions

View File

@@ -168,7 +168,7 @@ bool SILInstruction::mayHaveSideEffects() const {
//===----------------------------------------------------------------------===//
AllocStackInst::AllocStackInst(SILLocation loc, SILType elementType, SILFunction &F)
: AllocInst(ValueKind::AllocStackInst, loc, elementType.getAddressType()) {
: SILInstruction(ValueKind::AllocStackInst, loc, elementType.getAddressType()) {
}
/// getDecl - Return the underlying variable declaration associated with this
@@ -178,7 +178,7 @@ VarDecl *AllocStackInst::getDecl() const {
}
AllocRefInst::AllocRefInst(SILLocation loc, SILType elementType, SILFunction &F)
: AllocInst(ValueKind::AllocRefInst, loc, elementType) {
: SILInstruction(ValueKind::AllocRefInst, loc, elementType) {
}