Skip to content

Commit 5b5384a

Browse files
committed
[Clang importer] Work around addition of _Nullable_result
1 parent 3135b5d commit 5b5384a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ClangImporter/ClangAdapter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ OptionalTypeKind importer::translateNullability(clang::NullabilityKind kind) {
617617

618618
case clang::NullabilityKind::Unspecified:
619619
return OptionalTypeKind::OTK_ImplicitlyUnwrappedOptional;
620+
621+
default:
622+
return OptionalTypeKind::OTK_Optional;
620623
}
621624

622625
llvm_unreachable("Invalid NullabilityKind.");

0 commit comments

Comments
 (0)