If you and the person who claimed you both e-filed your returns, the IRS will reject the second return received. If you can legitimately be claimed by the other person, you'll have to submit an amended return. If the other person's return gets rejected, they'll have to resubmit their return on paper.
**Answers are correct to the best of my ability but do not constitute tax or legal advice.