diff options
author | Sanne Wouda <Sanne.Wouda@arm.com> | 2019-12-13 14:45:46 +0000 |
---|---|---|
committer | Sanne Wouda <Sanne.Wouda@arm.com> | 2020-01-17 18:09:42 +0000 |
commit | ecfd6d3e84185127fb836d6fe62564456be3a9cd (patch) | |
tree | 48a2d0de5a108ea5217852b68b2b99437f8efb27 /clang/lib/CodeGen/CGException.cpp | |
parent | a9f0025acd2235dccec51cf42d1e604675639343 (diff) | |
download | llvm-ecfd6d3e84185127fb836d6fe62564456be3a9cd.zip llvm-ecfd6d3e84185127fb836d6fe62564456be3a9cd.tar.gz llvm-ecfd6d3e84185127fb836d6fe62564456be3a9cd.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 53fafab..fffd989 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1885,7 +1885,7 @@ void CodeGenFunction::startOutlinedSEHHelper(CodeGenFunction &ParentCGF, OutlinedStmt->getBeginLoc(), OutlinedStmt->getBeginLoc()); CurSEHParent = ParentCGF.CurSEHParent; - CGM.SetLLVMFunctionAttributes(GlobalDecl(), FnInfo, CurFn); + CGM.SetInternalFunctionAttributes(GlobalDecl(), CurFn, FnInfo); EmitCapturedLocals(ParentCGF, OutlinedStmt, IsFilter); } |