Skip to content

Commit a0f11ca

Browse files
committed
Merge pull request #326 from apple/revert-293-master
Revert "Fixes [SR-78] swift compiler seg fault"
2 parents 4330cef + 66713ea commit a0f11ca

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)