[CodeGen] Add "noreturn" attirbute to _Unwind_Resume
authorEvgeniy Brevnov <ybrevnov@azul.com>
Wed, 23 Dec 2020 07:50:36 +0000 (14:50 +0700)
committerEvgeniy Brevnov <ybrevnov@azul.com>
Thu, 24 Dec 2020 11:14:18 +0000 (18:14 +0700)
commite0751234ef0df733032b777ed0d993a490121855
tree063f97664cefdf360b84b41611b596dc75f901ad
parent61177943c9c762c9dd3b43909c5b0d83fdc6dc5f
[CodeGen] Add "noreturn" attirbute to _Unwind_Resume

Currently 'resume' is lowered to _Unwind_Resume with out "noreturn" attribute. Semantically _Unwind_Resume  library call is expected to never return and should be marked as such. Though I didn't find any changes in behavior of existing tests there will be a difference once https://reviews.llvm.org/D79485 lands.

I was not able to come up with the test case anything better than just checking for presence of "noreturn" attribute. Please let me know if there is a better way to test the change.

Reviewed By: xbolva00

Differential Revision: https://reviews.llvm.org/D93682
llvm/lib/CodeGen/DwarfEHPrepare.cpp
llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-invoke-probabilities.ll
llvm/test/CodeGen/Generic/dwarf_eh_resume.ll [new file with mode: 0644]