My child's cry makes me angry.

I really hope I don't get any backlash. I need advice. I need help. I love my children with everything in me but when my six year old cries, it makes me angry. I don't feel sad, I don't feel any sympathy. I get angry and sometimes I yell.. a lot of the time.. I feel horrible. I had a miscarriage last month and when we told my daughter, she cried and I comforted her but doing so made me so uncomfortable, like I had to pretend. I've struggled with depression before, couldthis be it? I am actually scared with this. I don't know what to do. I don't want her to hate me. I don't want this to escalate to me spanking her or something. It terrifies me.