Properly remap live ranges whose end indices are the end of the function.