File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1346,6 +1346,13 @@ TinyPtrVector<ValueDecl *> NominalTypeDecl::lookupDirect(
1346
1346
bool useNamedLazyMemberLoading = (ctx.LangOpts .NamedLazyMemberLoading &&
1347
1347
hasLazyMembers ());
1348
1348
1349
+ // FIXME: At present, lazy member loading conflicts with a bunch of other code
1350
+ // that appears to special-case initializers (clang-imported initializer
1351
+ // sorting, implicit initializer synthesis), so for the time being we have to
1352
+ // turn it off for them entirely.
1353
+ if (name.getBaseName () == ctx.Id_init )
1354
+ useNamedLazyMemberLoading = false ;
1355
+
1349
1356
// We check the LookupTable at most twice, possibly treating a miss in the
1350
1357
// first try as a cache-miss that we then do a cache-fill on, and retry.
1351
1358
for (int i = 0 ; i < 2 ; ++i) {
You can’t perform that action at this time.
0 commit comments