Skip to content

Commit fe0ad60

Browse files
committed
[ASTGen] Fix a couple of @_cdecl param types
These are `void *` on the C side.
1 parent 356cf31 commit fe0ad60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/ASTGen/Sources/ASTGen/ASTGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ extension Optional where Wrapped: LazyCollectionProtocol {
476476
/// Generate AST nodes for all top-level entities in the given source file.
477477
@_cdecl("swift_ASTGen_buildTopLevelASTNodes")
478478
public func buildTopLevelASTNodes(
479-
diagEnginePtr: UnsafeMutablePointer<UInt8>,
479+
diagEnginePtr: UnsafeMutableRawPointer,
480480
sourceFilePtr: UnsafePointer<UInt8>,
481481
dc: UnsafeMutableRawPointer,
482482
ctx: UnsafeMutableRawPointer,

lib/ASTGen/Sources/ASTGen/SourceFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extension Syntax {
102102
/// Emit diagnostics within the given source file.
103103
@_cdecl("swift_ASTGen_emitParserDiagnostics")
104104
public func emitParserDiagnostics(
105-
diagEnginePtr: UnsafeMutablePointer<UInt8>,
105+
diagEnginePtr: UnsafeMutableRawPointer,
106106
sourceFilePtr: UnsafeMutablePointer<UInt8>,
107107
emitOnlyErrors: CInt,
108108
downgradePlaceholderErrorsToWarnings: CInt

lib/ASTGen/Sources/ASTGen/Types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ extension ASTGenVisitor {
342342
@_cdecl("swift_ASTGen_buildTypeRepr")
343343
@usableFromInline
344344
func buildTypeRepr(
345-
diagEnginePtr: UnsafeMutablePointer<UInt8>,
345+
diagEnginePtr: UnsafeMutableRawPointer,
346346
sourceFilePtr: UnsafeRawPointer,
347347
typeLocPtr: UnsafePointer<UInt8>,
348348
dc: UnsafeMutableRawPointer,

0 commit comments

Comments
 (0)