In spite of his death sentence, Tyrion does not die in the Game of Thrones finale. Instead, he manages to talk Jon Snow into assassinating Daenerys and is eventually pardoned by Westeros' new king, Bran Stark (who is now called Bran the Broken, as if that's a complimentary title).