Skip to content

Commit b80e4bf

Browse files
authored
Merge pull request #35005 from DougGregor/nullable-result-workaround
[Clang importer] Work around addition of _Nullable_result
2 parents 3135b5d + 5b5384a commit b80e4bf

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)