Skip to content

Commit 2fdd5fc

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-rebranch
2 parents e439c0f + e9bf767 commit 2fdd5fc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/ClangImporter/ImportType.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,9 @@ namespace {
401401

402402
// With pointer conversions enabled, map to the normal pointer types
403403
// without special hints.
404-
Type pointeeType;
405-
if (pointeeQualType->isVoidType())
406-
pointeeType = Impl.getNamedSwiftType(Impl.getStdlibModule(), "Void");
407-
else
408-
pointeeType = Impl.importTypeIgnoreIUO(
409-
pointeeQualType, ImportTypeKind::Value, AllowNSUIntegerAsInt,
410-
Bridgeability::None);
404+
Type pointeeType = Impl.importTypeIgnoreIUO(
405+
pointeeQualType, ImportTypeKind::Value, AllowNSUIntegerAsInt,
406+
Bridgeability::None);
411407

412408
// If the pointed-to type is unrepresentable in Swift, or its C
413409
// alignment is greater than the maximum Swift alignment, import as

0 commit comments

Comments
 (0)