Took a dump with my daughter

So I kinda really had to go take a dump and my daughter is very clingy. There was no one at home and I didn't want to leave her by herself so I had to hold it. But it got to a point where I couldn't anymore so I took her to the bathroom with me, had her on my laps while I did my thing. I feel kinda bad for doing this but like I said I really had to and she won't let me cos each time I left her she cries. Is this a bad thing to do. I feel guilty