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

@@ -573,9 +573,9 @@ static bool removeAndReleaseArray(SingleValueInstruction *NewArrayValue,
auto *TupleElt = dyn_cast<TupleExtractInst>(Op->getUser());
if (!TupleElt)
return false;
if (TupleElt->getFieldNo() == 0 && !ArrayDef) {
if (TupleElt->getFieldIndex() == 0 && !ArrayDef) {
ArrayDef = TupleElt;
} else if (TupleElt->getFieldNo() == 1 && !StorageAddress) {
} else if (TupleElt->getFieldIndex() == 1 && !StorageAddress) {
StorageAddress = TupleElt;
} else {
return false;