Revert order of Remove Mount Item operations

Summary: Revert the order of "remove mount items", to ensure views are removed from high index to low index.

Reviewed By: shergin

Differential Revision: D8742796

fbshipit-source-id: 6e04c39386d290bf3958ee83256d4fbe23e2c4ca
This commit is contained in:
David Vacca 2018-07-06 09:12:56 -07:00 committed by Facebook Github Bot
parent ac09261a4c
commit 6292e2707a
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ static void calculateMutationInstructions(
// All instructions in an optimal order:
instructions.insert(instructions.end(), destructionDownwardInstructions.begin(), destructionDownwardInstructions.end());
instructions.insert(instructions.end(), replaceInstructions.begin(), replaceInstructions.end());
instructions.insert(instructions.end(), removeInstructions.begin(), removeInstructions.end());
instructions.insert(instructions.end(), removeInstructions.rbegin(), removeInstructions.rend());
instructions.insert(instructions.end(), createInstructions.begin(), createInstructions.end());
instructions.insert(instructions.end(), downwardInstructions.begin(), downwardInstructions.end());
instructions.insert(instructions.end(), insertInstructions.begin(), insertInstructions.end());