[clang] Set function attributes on SEH filter functions correctly.
authorSanne Wouda <Sanne.Wouda@arm.com>
Fri, 13 Dec 2019 14:45:46 +0000 (14:45 +0000)
committerSanne Wouda <Sanne.Wouda@arm.com>
Fri, 17 Jan 2020 18:09:42 +0000 (18:09 +0000)
commitecfd6d3e84185127fb836d6fe62564456be3a9cd
tree48a2d0de5a108ea5217852b68b2b99437f8efb27
parenta9f0025acd2235dccec51cf42d1e604675639343
[clang] Set function attributes on SEH filter functions correctly.

Summary:
When compiling with -munwind-tables, the SEH filter funclet needs the uwtable
function attribute, which gets automatically added if we use
SetInternalFunctionAttributes.  The filter funclet is internal so this seems
appropriate.

Reviewers: rnk

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72786
clang/lib/CodeGen/CGException.cpp
clang/test/CodeGen/exceptions-seh-finally.c
clang/test/CodeGenCXX/exceptions-seh-filter-uwtable.cpp [new file with mode: 0644]