Skip to content

Commit c015c6d

Browse files
committed
[ClangImporter] Fix -Wcovered-switch-default warning
1 parent eeab067 commit c015c6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ClangImporter/ClangAdapter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,12 +629,10 @@ OptionalTypeKind importer::translateNullability(
629629

630630
case clang::NullabilityKind::Unspecified:
631631
return OptionalTypeKind::OTK_ImplicitlyUnwrappedOptional;
632-
633-
default:
634-
return OptionalTypeKind::OTK_Optional;
635632
}
636633

637634
llvm_unreachable("Invalid NullabilityKind.");
635+
return OptionalTypeKind::OTK_Optional;
638636
}
639637

640638
bool importer::isRequiredInitializer(const clang::ObjCMethodDecl *method) {

0 commit comments

Comments
 (0)