Presumably if it happened after the deadline the election would just have to go ahead with the dead candidate staying on it.
If he or she got elected I imagine the vice presidential candidate would automatically succeed, as would happen if the president elect died before inauguration.