Fix an obvious typo that snuck in by mistake last commit.

Swift SVN r20888
This commit is contained in:
Nadav Rotem
2014-08-01 06:05:55 +00:00
parent 28022fcc04
commit c39bcf7736

View File

@@ -1134,7 +1134,7 @@ SILInstruction *SILCombiner::visitApplyInst(ApplyInst *AI) {
// Erase all of the reference counting instructions and the Apply itself.
for (auto rit = Users.rbegin(), re = Users.rend(); rit != re; ++rit)
return eraseInstFromFunction(**rit);
eraseInstFromFunction(**rit);
}
// We found a user that we can't handle.
@@ -1211,7 +1211,7 @@ SILInstruction *SILCombiner::visitAllocArrayInst(AllocArrayInst *AAI) {
// Erase all of the reference counting instructions and the array
// allocation instruction.
for (auto rit = Users.rbegin(), re = Users.rend(); rit != re; ++rit)
return eraseInstFromFunction(**rit);
eraseInstFromFunction(**rit);
}
return nullptr;