Returns a new instruction that shares the state of the existing instruction, but with the given child Instruction replacing the existing child.
Source
Instruction replaceChild(Instruction child) => new ResolvedInstruction(component, child, auxInstruction);