aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorSanne Wouda <Sanne.Wouda@arm.com>2019-12-13 14:45:46 +0000
committerSanne Wouda <Sanne.Wouda@arm.com>2020-01-17 18:09:42 +0000
commitecfd6d3e84185127fb836d6fe62564456be3a9cd (patch)
tree48a2d0de5a108ea5217852b68b2b99437f8efb27 /clang/lib/CodeGen/CGException.cpp
parenta9f0025acd2235dccec51cf42d1e604675639343 (diff)
downloadllvm-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.cpp2
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);
}