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.
2 parents 6fee86d + 7686f05 commit aa396d8Copy full SHA for aa396d8
lib/IRGen/StructMetadataVisitor.h
@@ -17,6 +17,7 @@
17
#ifndef SWIFT_IRGEN_STRUCTMETADATALAYOUT_H
18
#define SWIFT_IRGEN_STRUCTMETADATALAYOUT_H
19
20
+#include "Field.h"
21
#include "NominalMetadataVisitor.h"
22
#include "swift/AST/IRGenOptions.h"
23
@@ -64,8 +65,7 @@ template <class Impl> class StructMetadataVisitor
64
65
// Struct field offsets.
66
asImpl().noteStartOfFieldOffsets();
67
for (VarDecl *prop : Target->getStoredProperties()) {
- if (!(prop->getClangDecl() &&
68
- prop->getFormalAccess() == AccessLevel::Private))
+ if (isExportableField(prop))
69
asImpl().addFieldOffset(prop);
70
}
71
0 commit comments