Pitch Perfect star Adam Devine has revealed he was told that he was dying by doctors last year.