mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix an obvious typo that snuck in by mistake last commit.
Swift SVN r20888
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user