Skip to content

Commit e9bf767

Browse files
authored
[ClangImporter] Remove dead code around UnsafePointer<Void> (#27310)
...which is how we imported pointers-to-void before UnsafeRawPointer existed. No functionality change.
1 parent 75315b4 commit e9bf767

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
@@ -379,13 +379,9 @@ namespace {
379379

380380
// With pointer conversions enabled, map to the normal pointer types
381381
// without special hints.
382-
Type pointeeType;
383-
if (pointeeQualType->isVoidType())
384-
pointeeType = Impl.getNamedSwiftType(Impl.getStdlibModule(), "Void");
385-
else
386-
pointeeType = Impl.importTypeIgnoreIUO(
387-
pointeeQualType, ImportTypeKind::Value, AllowNSUIntegerAsInt,
388-
Bridgeability::None);
382+
Type pointeeType = Impl.importTypeIgnoreIUO(
383+
pointeeQualType, ImportTypeKind::Value, AllowNSUIntegerAsInt,
384+
Bridgeability::None);
389385

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

0 commit comments

Comments
 (0)