Fix typo: eliminater → eliminator

This commit is contained in:
practicalswift
2015-12-14 00:11:40 +01:00
parent 7f08c9d785
commit b4f2e5dfdf

View File

@@ -778,7 +778,7 @@ bool CopyForwarding::backwardPropagateCopy(
// 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 us to eliminate the later copy, and the
// init copy may be eliminater later.
// init copy may be eliminator later.
if (auto Copy = dyn_cast<CopyAddrInst>(&*SI)) {
if (Copy->getDest() == CopySrc && !Copy->isInitializationOfDest()) {
SILBuilderWithScope(Copy).createDestroyAddr(Copy->getLoc(), CopySrc);