mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Merge pull request #40356 from gmittert/TypeLayoutFixes"
This reverts commitd27e6e1e46, reversing changes made tof2e85a2b1f. It causes an execution time failure in `Interpreter/struct_extra_inhabitants.swift` with ``` ninja -C swift-macosx-x86_64 check-swift-optimize ``` rdar://86054209
This commit is contained in:
@@ -120,7 +120,7 @@ public:
|
||||
TypeLayoutEntry *buildTypeLayoutEntry(IRGenModule &IGM,
|
||||
SILType T) const override {
|
||||
if (!IGM.getOptions().ForceStructTypeLayouts || !areFieldsABIAccessible()) {
|
||||
return IGM.typeLayoutCache.getOrCreateTypeInfoBasedEntry(*this, T);
|
||||
return IGM.typeLayoutCache.getOrCreateScalarEntry(*this, T);
|
||||
}
|
||||
|
||||
if (getFields().empty()) {
|
||||
@@ -292,7 +292,7 @@ public:
|
||||
TypeLayoutEntry *buildTypeLayoutEntry(IRGenModule &IGM,
|
||||
SILType T) const override {
|
||||
if (!IGM.getOptions().ForceStructTypeLayouts || !areFieldsABIAccessible()) {
|
||||
return IGM.typeLayoutCache.getOrCreateTypeInfoBasedEntry(*this, T);
|
||||
return IGM.typeLayoutCache.getOrCreateScalarEntry(*this, T);
|
||||
}
|
||||
|
||||
if (getFields().empty()) {
|
||||
|
||||
Reference in New Issue
Block a user