Skip to content

Commit 00de4b1

Browse files
committed
---
yaml --- r: 274687 b: refs/heads/swift-5.1-branch c: c66708b h: refs/heads/master i: 274685: bbb639a 274683: 039c573 274679: 09476b8 274671: 7c62277 274655: ecb7ec2 274623: ab39b60 274559: e6de9a1 274431: dece103
1 parent d2e9705 commit 00de4b1

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ refs/heads/marcrasi-astverifier-disable: 3fac766a23a77ebd0640296bfd7fc116ea60a4e
12421242
refs/heads/revert-22227-a-tall-white-fountain-played: adfce60b2eaa54903ea189bed8a783bca609fa53
12431243
refs/heads/revert-22300-revert-22227-a-tall-white-fountain-played: 5f92040224df7dd4e618fdfb367349df64d8acad
12441244
refs/heads/swift-5.1-old-llvm-branch: ba94558954a032679be0f7b68e8e2686ec33970a
1245-
refs/heads/swift-5.1-branch: a982426f2fd9ac366bf5a380740ff7c8d57badbc
1245+
refs/heads/swift-5.1-branch: c66708bf2379a52e964f38226224417bf4d70e93
12461246
refs/tags/swift-4.2.2-RELEASE: e429d1f1aaf59e69d38207a96e56265c7f6fccec
12471247
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-02-a: 3e5a03d32ff3b1e9af90d6c1198c14f938379a6e
12481248
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-03-a: 4591c933063ddcb0d6cd6d0cdd01086b2f9b244d

branches/swift-5.1-branch/include/swift/SIL/TypeLowering.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -306,23 +306,6 @@ class TypeLowering {
306306
return Properties.isResilient();
307307
}
308308

309-
/// Return the semantic type.
310-
///
311-
/// The semantic type is what a type pretends to be during
312-
/// type-checking: that is, the type that getTypeOfRValue would
313-
/// return on a variable of this type.
314-
SILType getSemanticType() const {
315-
// If you change this, change getSemanticTypeLowering() too.
316-
auto storageType = getLoweredType().getASTType();
317-
if (auto refType = dyn_cast<ReferenceStorageType>(storageType))
318-
return SILType::getPrimitiveType(refType.getReferentType(),
319-
SILValueCategory::Object);
320-
return getLoweredType();
321-
}
322-
323-
/// Return the lowering for the semantic type.
324-
inline const TypeLowering &getSemanticTypeLowering(TypeConverter &TC) const;
325-
326309
/// Produce an exact copy of the value in the given address as a
327310
/// scalar. The caller is responsible for destroying this value,
328311
/// e.g. by releasing it.
@@ -1033,15 +1016,6 @@ class TypeConverter {
10331016
bool suppressOptional);
10341017
};
10351018

1036-
inline const TypeLowering &
1037-
TypeLowering::getSemanticTypeLowering(TypeConverter &TC) const {
1038-
// If you change this, change getSemanticType() too.
1039-
auto storageType = getLoweredType().getASTType();
1040-
if (auto refType = dyn_cast<ReferenceStorageType>(storageType))
1041-
return TC.getTypeLowering(refType.getReferentType());
1042-
return *this;
1043-
}
1044-
10451019
/// RAII interface to push a generic context.
10461020
class GenericContextScope {
10471021
TypeConverter &TC;

0 commit comments

Comments
 (0)