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

Do "the cup" and "it" have the same meaning?
no