mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #506 from practicalswift/fix-typos-10
Fix typos (10 of 30)
This commit is contained in:
@@ -699,7 +699,7 @@ bool CopyForwarding::forwardPropagateCopy(
|
||||
// Convert a reinitialization of this address into a destroy, followed by an
|
||||
// initialization. Replacing a copy with a destroy+init is not by itself
|
||||
// profitable. However, it does allow eliminating the earlier copy, and we may
|
||||
// later be able to elimimate this initialization copy.
|
||||
// later be able to eliminate this initialization copy.
|
||||
if (auto Copy = dyn_cast<CopyAddrInst>(&*SI)) {
|
||||
if (Copy->getDest() == CopyDest) {
|
||||
assert(!Copy->isInitializationOfDest() && "expected a deinit");
|
||||
|
||||
Reference in New Issue
Block a user