File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -1207,25 +1207,21 @@ void NominalTypeDecl::prepareLookupTable() {
1207
1207
1208
1208
if (hasLazyMembers ()) {
1209
1209
assert (!hasUnparsedMembers ());
1210
-
1211
- // Lazy members: if the table needs population, populate the table _only
1212
- // from those members already in the IDC member list_ such as implicits or
1213
- // globals-as-members.
1214
1210
LookupTable->addMembers (getCurrentMembersWithoutLoading ());
1215
- for (auto e : getExtensions ()) {
1216
- // If we can lazy-load this extension, only take the members we've loaded
1217
- // so far.
1218
- if (e->wasDeserialized () || e->hasClangNode ()) {
1219
- LookupTable->addMembers (e->getCurrentMembersWithoutLoading ());
1220
- continue ;
1221
- }
1222
-
1223
- // Else, load all the members into the table.
1224
- LookupTable->addMembers (e->getMembers ());
1225
- }
1226
1211
} else {
1227
1212
LookupTable->addMembers (getMembers ());
1228
- LookupTable->updateLookupTable (this );
1213
+ }
1214
+
1215
+ for (auto e : getExtensions ()) {
1216
+ // If we can lazy-load this extension, only take the members we've loaded
1217
+ // so far.
1218
+ if (e->wasDeserialized () || e->hasClangNode ()) {
1219
+ LookupTable->addMembers (e->getCurrentMembersWithoutLoading ());
1220
+ continue ;
1221
+ }
1222
+
1223
+ // Else, load all the members into the table.
1224
+ LookupTable->addMembers (e->getMembers ());
1229
1225
}
1230
1226
}
1231
1227
You can’t perform that action at this time.
0 commit comments