Skip to content

Commit 09f7b0c

Browse files
committed
Use fall-through rather then else.
1 parent 6d1c4b0 commit 09f7b0c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,12 +2059,9 @@ namespace {
20592059
}
20602060
case MetatypeRepresentation::Thick:
20612061
if (isa<ExistentialMetatypeType>(type)) {
2062-
return emitFromTypeMetadata(type);
2063-
} else {
2064-
// Thick metatypes look like pointers with spare bits.
2065-
return emitFromValueWitnessTable(
2066-
CanMetatypeType::get(IGF.IGM.Context.TheNativeObjectType));
2062+
return emitFromTypeMetadata(type);
20672063
}
2064+
// Otherwise, this is a metatype that looks like a pointer.
20682065
case MetatypeRepresentation::ObjC:
20692066
// Thick metatypes look like pointers with spare bits.
20702067
return emitFromValueWitnessTable(

0 commit comments

Comments
 (0)