Skip to content

Commit c28848a

Browse files
committed
IRGen: Stop using 'completely fragile' mode when emitting class metadata
This was a stop-gap measure until the YAML legacy type layout infrastructure was in place.
1 parent 5680bfd commit c28848a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/IRGen/GenClass.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,7 @@ namespace {
376376
// Lower the field type.
377377
auto *eltType = &IGM.getTypeInfo(type);
378378
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);
379+
LoweringModeScope scope(IGM, TypeConverter::Mode::Legacy);
385380
eltType = &IGM.getTypeInfo(type);
386381
}
387382

0 commit comments

Comments
 (0)