Skip to content

Commit e2993ea

Browse files
committed
[ASTGen] Support older host compilers
1 parent 9979bb0 commit e2993ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ASTGen/Sources/ASTGen/ASTGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct ASTGenVisitor: SyntaxTransformVisitor {
7272
/// Generate AST nodes for all top-level entities in the given source file.
7373
@_cdecl("swift_ASTGen_buildTopLevelASTNodes")
7474
public func buildTopLevelASTNodes(
75-
sourceFilePtr: UnsafeRawPointer,
75+
sourceFilePtr: UnsafePointer<UInt8>,
7676
dc: UnsafeMutableRawPointer,
7777
ctx: UnsafeMutableRawPointer,
7878
outputContext: UnsafeMutableRawPointer,

lib/ASTGen/Sources/ASTGen/SourceFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public func parseSourceFile(
4040
/// Deallocate a parsed source file.
4141
@_cdecl("swift_ASTGen_destroySourceFile")
4242
public func destroySourceFile(
43-
sourceFilePtr: UnsafeMutableRawPointer
43+
sourceFilePtr: UnsafeMutablePointer<UInt8>
4444
) {
4545
sourceFilePtr.withMemoryRebound(to: ExportedSourceFile.self, capacity: 1) { sourceFile in
4646
sourceFile.deinitialize(count: 1)

0 commit comments

Comments
 (0)