Skip to content

Commit 2a199e8

Browse files
committed
IRGen: Simplify TypeConverter::convertArchetypeType()
1 parent 0c0a963 commit 2a199e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IRGen/GenArchetype.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ const TypeInfo *TypeConverter::convertArchetypeType(ArchetypeType *archetype) {
284284

285285
// If the archetype is class-constrained, use a class pointer
286286
// representation.
287-
if (archetype->requiresClass() ||
288-
(layout && layout->isRefCounted())) {
287+
if (layout && layout->isRefCounted()) {
289288
auto refcount = archetype->getReferenceCounting();
290289

291290
llvm::PointerType *reprTy;

0 commit comments

Comments
 (0)