Skip to content

Commit f0b2598

Browse files
committed
SILGen: We check for infinite types in Sema now, so this check is dead, NFC
1 parent c1c1fe6 commit f0b2598

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,6 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
316316

317317
/// Emit SIL functions for all the members of the type.
318318
void emitType() {
319-
// Force type lowering to lower the type, so that we have a chance to
320-
// check for infinite value types even if there are no other references
321-
// to this type.
322-
SGM.Types.getTypeLowering(theType->getDeclaredTypeInContext());
323-
324319
// Start building a vtable if this is a class.
325320
if (auto theClass = dyn_cast<ClassDecl>(theType))
326321
genVTable.emplace(SGM, theClass);

0 commit comments

Comments
 (0)