Skip to content

Commit 37a6535

Browse files
committed
---
yaml --- r: 273917 b: refs/heads/master-next c: a1b75ca h: refs/heads/master i: 273915: fd4fbbb
1 parent 87e7a0f commit 37a6535

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
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: cbef630f19f869ab5279731179bd731f12b3b9d5
3-
refs/heads/master-next: 5b3056cc2871f954cab0b2cb298e0628bfb4b751
3+
refs/heads/master-next: a1b75cac54067a170f62bd29acc0e802e31bc2fc
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/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)