Skip to content

Commit c5f9fc1

Browse files
committed
remove (now unused) TypeLowering::isValid()
1 parent 9203f20 commit c5f9fc1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/swift/SIL/TypeLowering.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ class TypeLowering {
151151
return !isAddressOnly();
152152
}
153153

154-
/// True if the type was successfully lowered, false if there was an error
155-
/// during type lowering.
156-
virtual bool isValid() const {
157-
return true;
158-
}
159-
160154
/// Returns true if the type is trivial, meaning it is a loadable
161155
/// value type with no reference type members that require releasing.
162156
bool isTrivial() const {

lib/SILOptimizer/Mandatory/PredictableMemOpt.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ getFullyReferenceableStruct(SILType Ty) {
4141
}
4242

4343
static unsigned getNumSubElements(SILType T, SILModule &M) {
44-
if (!M.getTypeLowering(T).isValid())
45-
return 0;
4644

4745
if (auto TT = T.getAs<TupleType>()) {
4846
unsigned NumElements = 0;

0 commit comments

Comments
 (0)