Handle unhandled case in findAddressProjectionPathBetweenValues.

Swift SVN r18982
This commit is contained in:
Mark Lacey
2014-06-18 18:31:37 +00:00
parent 6a29ca7f6e
commit 1b17d5c3bf

View File

@@ -122,8 +122,10 @@ findAddressProjectionPathBetweenValues(SILValue V1, SILValue V2,
Path.push_back(Projection(SEA));
else if (auto *TEA = dyn_cast<TupleElementAddrInst>(Iter))
Path.push_back(Projection(TEA));
else if (auto *REA = dyn_cast<RefElementAddrInst>(Iter))
Path.push_back(Projection(REA));
else
Path.push_back(Projection(cast<RefElementAddrInst>(&*Iter)));
Path.push_back(Projection(cast<UncheckedTakeEnumDataAddrInst>(Iter)));
Iter = cast<SILInstruction>(*Iter).getOperand(0);
}