mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[embedded] Actually, use 'nounwind' even with C++ interop on, add comment
This commit is contained in:
@@ -1445,8 +1445,9 @@ void IRGenModule::constructInitialFnAttributes(
|
||||
Attrs.addAttribute("stack-protector-buffer-size", llvm::utostr(8));
|
||||
}
|
||||
|
||||
if (Context.LangOpts.hasFeature(Feature::Embedded) &&
|
||||
!Context.LangOpts.EnableCXXInterop) {
|
||||
// Mark as 'nounwind' to avoid referencing exception personality symbols, this
|
||||
// is okay even with C++ interop on because the landinpads are trapping.
|
||||
if (Context.LangOpts.hasFeature(Feature::Embedded)) {
|
||||
Attrs.addAttribute(llvm::Attribute::NoUnwind);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user