Context:I poured water from the bottle into the cup until *it* was empty.

Is "it" the same as "the bottle"?
yes