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 4a2269b commit 7ac0381Copy full SHA for 7ac0381
lib/SIL/IR/SILType.cpp
@@ -162,6 +162,11 @@ bool SILType::isEmpty(const SILFunction &F) const {
162
// Also, a struct is empty if it either has no fields or if all fields are
163
// empty.
164
SILModule &module = F.getModule();
165
+ if (structDecl->isResilient(module.getSwiftModule(),
166
+ F.getResilienceExpansion())) {
167
+ return false;
168
+ }
169
+
170
TypeExpansionContext typeEx = F.getTypeExpansionContext();
171
for (VarDecl *field : structDecl->getStoredProperties()) {
172
if (!getFieldType(field, module, typeEx).isEmpty(F))
0 commit comments