SIL: remove use-iteration functions from SILValue.

They are not needed anymore. NFC.
This commit is contained in:
Erik Eckstein
2016-01-25 11:15:33 -08:00
parent f18c8431fd
commit 5a53b31f57
20 changed files with 29 additions and 59 deletions

View File

@@ -179,7 +179,7 @@ static bool useCaptured(Operand *UI) {
}
static bool partialApplyEscapes(SILValue V, bool examineApply) {
for (auto UI : V.getUses()) {
for (auto UI : V->getUses()) {
auto *User = UI->getUser();
// These instructions do not cause the address to escape.
@@ -343,7 +343,7 @@ static SILInstruction* findUnexpectedBoxUse(SILValue Box,
// Scan all of the uses of the retain count value, collecting all
// the releases and validating that we don't have an unexpected
// user.
for (auto UI : Box.getUses()) {
for (auto UI : Box->getUses()) {
auto *User = UI->getUser();
// Retains and releases are fine. Deallocs are fine if we're not