Skip to content

Commit dbf4864

Browse files
committed
Remove use of llvm.ArrayRef.
1 parent b4abb47 commit dbf4864

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

SwiftCompilerSources/Sources/AST/DiagnosticEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public struct DiagnosticFixIt {
4646
let bridgedDiagnosticFixIt = swift.DiagnosticInfo.FixIt(
4747
swift.CharSourceRange(start.bridged, UInt32(byteLength)),
4848
bridgedTextRef,
49-
llvm.ArrayRef<swift.DiagnosticArgument>())
49+
ArrayRefOfDiagnosticArgument())
5050
fn(bridgedDiagnosticFixIt)
5151
}
5252
}

include/swift/AST/ASTBridging.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ void DiagnosticEngine_diagnose(swift::DiagnosticEngine &, swift::SourceLoc loc,
4545
swift::CharSourceRange highlight,
4646
BridgedArrayRef fixIts);
4747

48+
using ArrayRefOfDiagnosticArgument = llvm::ArrayRef<swift::DiagnosticArgument>;
49+
4850
SWIFT_END_NULLABILITY_ANNOTATIONS
4951

5052
#endif // SWIFT_AST_ASTBRIDGING_H

0 commit comments

Comments
 (0)