Skip to content

Commit 66713ea

Browse files
committed
Revert "Fixes [SR-78] swift compiler seg fault"
1 parent 4330cef commit 66713ea

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

lib/IRGen/GenType.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,9 +2031,8 @@ SILType irgen::getSingletonAggregateFieldType(IRGenModule &IGM,
20312031

20322032
// If there's only one stored property, we have the layout of its field.
20332033
auto allFields = structDecl->getStoredProperties();
2034-
20352034
auto field = allFields.begin();
2036-
if (!allFields.empty() && std::next(field) == allFields.end())
2035+
if (std::next(field) == allFields.end())
20372036
return t.getFieldType(*field, *IGM.SILMod);
20382037

20392038
return SILType();

test/IRGen/generic_structs.swift

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)