How to handle impatience?

My 18-month old is for the most part a outgoing, playful who loves cuddles and kisses. However, she can be very impatient when not getting what she wants/needs right away, even while explaining that mommy is peeing. Following with whining to a full blown tantrum. I have lost it a couple of times and have told her and yelled not to cry and just sit down and wait. She then tries to hold it in. I feel horrible afterwards, and maybe I'm doing damage from preventing to show crying emotions? I'm not sure how to handle the situation other than to ignore and let her cry? Any tips?