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 5680bfd commit c28848aCopy full SHA for c28848a
lib/IRGen/GenClass.cpp
@@ -376,12 +376,7 @@ namespace {
376
// Lower the field type.
377
auto *eltType = &IGM.getTypeInfo(type);
378
if (CompletelyFragileLayout && !eltType->isFixedSize()) {
379
- // For staging purposes, only do the new thing if we're going
380
- // to load a YAML file describing legacy type layouts.
381
- auto mode = (IGM.IRGen.Opts.DisableLegacyTypeInfo
382
- ? TypeConverter::Mode::CompletelyFragile
383
- : TypeConverter::Mode::Legacy);
384
- LoweringModeScope scope(IGM, mode);
+ LoweringModeScope scope(IGM, TypeConverter::Mode::Legacy);
385
eltType = &IGM.getTypeInfo(type);
386
}
387
0 commit comments