Effect lasts until end of dead creature’s next turn

If a spell has a duration that lasts until the end of the caster’s next turn, and the caster dies before then, is the spell ended when they die or does it continue until when their turn would have occurred?