If the child died prior to the testator dying, then your state's laws would need to be reviewed to determine if there is an anti-lapse statute. This means it will then go to the grandchild or if it lapses, it can go into the residuary clause of the estate.