Skip to content

Commit 4d5a691

Browse files
committed
SIL: Remove some obsolete mentions of 'uncurry level' from TypeLowering
1 parent a1b75ca commit 4d5a691

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

include/swift/SIL/TypeLowering.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,6 @@ class TypeConverter {
565565

566566
llvm::BumpPtrAllocator IndependentBPA;
567567

568-
enum : unsigned {
569-
/// There is a unique entry with this uncurry level in the
570-
/// type-lowering map for every TLI we create. The map has the
571-
/// responsibility to call the destructor for these entries.
572-
UniqueLoweringEntry = ~0U
573-
};
574-
575568
struct CachingTypeKey {
576569
GenericSignature *Sig;
577570
AbstractionPattern::CachingKey OrigType;

lib/SIL/TypeLowering.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,9 +1582,6 @@ TypeConverter::getTypeLoweringForLoweredType(TypeKey key,
15821582
assert(type->isLegalSILType() && "type is not lowered!");
15831583
(void)type;
15841584

1585-
// Re-using uncurry level 0 is reasonable because our uncurrying
1586-
// transforms are idempotent at this level. This means we don't
1587-
// need a ton of redundant entries in the map.
15881585
const TypeLowering *lowering = find(key);
15891586
if (!lowering) {
15901587
lowering = &getTypeLoweringForUncachedLoweredType(key);

0 commit comments

Comments
 (0)