Rename getFieldNo() to getFieldIndex().

Do I really need to justify this?
This commit is contained in:
Andrew Trick
2020-09-24 22:40:48 -07:00
parent 28294725d4
commit 5ae231eaab
38 changed files with 83 additions and 84 deletions

View File

@@ -1644,7 +1644,7 @@ void swift::replaceLoadSequence(SILInstruction *inst, SILValue value) {
if (auto *teai = dyn_cast<TupleElementAddrInst>(inst)) {
SILBuilder builder(teai);
auto *tei =
builder.createTupleExtract(teai->getLoc(), value, teai->getFieldNo());
builder.createTupleExtract(teai->getLoc(), value, teai->getFieldIndex());
for (auto teaiUse : teai->getUses()) {
replaceLoadSequence(teaiUse->getUser(), tei);
}