File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -151,12 +151,6 @@ class TypeLowering {
151
151
return !isAddressOnly ();
152
152
}
153
153
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
-
160
154
// / Returns true if the type is trivial, meaning it is a loadable
161
155
// / value type with no reference type members that require releasing.
162
156
bool isTrivial () const {
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ getFullyReferenceableStruct(SILType Ty) {
41
41
}
42
42
43
43
static unsigned getNumSubElements (SILType T, SILModule &M) {
44
- if (!M.getTypeLowering (T).isValid ())
45
- return 0 ;
46
44
47
45
if (auto TT = T.getAs <TupleType>()) {
48
46
unsigned NumElements = 0 ;
You can’t perform that action at this time.
0 commit comments