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:
@@ -235,7 +235,7 @@ namespace {
|
||||
TypeLayoutEntry *buildTypeLayoutEntry(IRGenModule &IGM,
|
||||
SILType T) const override {
|
||||
if (!IGM.getOptions().ForceStructTypeLayouts) {
|
||||
return IGM.typeLayoutCache.getOrCreateTypeInfoBasedEntry(*this, T);
|
||||
return IGM.typeLayoutCache.getOrCreateScalarEntry(*this, T);
|
||||
}
|
||||
if (getFields().empty()) {
|
||||
return IGM.typeLayoutCache.getEmptyEntry();
|
||||
@@ -280,7 +280,7 @@ namespace {
|
||||
TypeLayoutEntry *buildTypeLayoutEntry(IRGenModule &IGM,
|
||||
SILType T) const override {
|
||||
if (!IGM.getOptions().ForceStructTypeLayouts) {
|
||||
return IGM.typeLayoutCache.getOrCreateTypeInfoBasedEntry(*this, T);
|
||||
return IGM.typeLayoutCache.getOrCreateScalarEntry(*this, T);
|
||||
}
|
||||
if (getFields().empty()) {
|
||||
return IGM.typeLayoutCache.getEmptyEntry();
|
||||
|
||||
Reference in New Issue
Block a user