Same here but different reason. I worked in Software Engineering for a financial organization when I announced the arrival of my first child to head of HR (Monday). My performance review was scheduled for Tuesday but my manager postponed to Friday. I was fired (because of my baby) that Friday by head of HR instead of sitting down in 1-1 with my manager or CTO. They just didn't have the guts to tell me that my productivity will drop b/c of lack of sleep, etc.
Shitty move but lesson learned: don't announce the due date of your unborn child BEFORE a performance review! Better don't announce it at all if you wanna keep your job.