mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename getFieldNo() to getFieldIndex().
Do I really need to justify this?
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user