Skip to content

Commit f31c89a

Browse files
authored
Merge pull request #80925 from kubamracek/clangimport-constants-fix
[ClangImporter] Handle nullptr from importTypeIgnoreIUO() in constant values importing logic
2 parents 5bd782e + d704989 commit f31c89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4621,7 +4621,7 @@ namespace {
46214621
isInSystemModule(dc), Bridgeability::None, ImportTypeAttrs());
46224622

46234623
// FIXME: Handle CGFloat too.
4624-
if (!type->isCGFloat()) {
4624+
if (type && !type->isCGFloat()) {
46254625
auto convertKind = ConstantConvertKind::None;
46264626
// Request conversions on enums, and swift_wrapper((enum/struct))
46274627
// types

0 commit comments

Comments
 (0)