We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ac679 commit 64f9165Copy full SHA for 64f9165
lib/ClangImporter/ImportDecl.cpp
@@ -2043,7 +2043,9 @@ namespace {
2043
// C structs. That'll require some SIL and IRGen work, though.
2044
if (decl->isNonTrivialToPrimitiveCopy() ||
2045
decl->isNonTrivialToPrimitiveDestroy()) {
2046
- isNonTrivialPtrAuth = isNonTrivialDueToAddressDiversifiedPtrAuth(decl);
+ isNonTrivialPtrAuth = Impl.SwiftContext.SILOpts
2047
+ .EnableImportPtrauthFieldFunctionPointers &&
2048
+ isNonTrivialDueToAddressDiversifiedPtrAuth(decl);
2049
if (!isNonTrivialPtrAuth) {
2050
// Note that there is a third predicate related to these,
2051
// isNonTrivialToPrimitiveDefaultInitialize. That one's not important
0 commit comments