diff --git a/Package.swift b/Package.swift index 51473e56357..ea6c6d2fe9d 100644 --- a/Package.swift +++ b/Package.swift @@ -259,7 +259,7 @@ import Darwin.C if getenv("SWIFTPM_BOOTSTRAP") == nil { package.dependencies += [ - .package(url: "https://github.com/apple/swift-llbuild.git", .branch("master")), + .package(url: "https://github.com/apple/swift-llbuild.git", "0.1.0"..<"0.2.0"), ] package.targets.first(where: { $0.name == "SPMLLBuild" })!.dependencies += ["llbuildSwift"] } diff --git a/Sources/Basic/SortedArray.swift b/Sources/Basic/SortedArray.swift index 045c1e017c4..72a2144e12d 100644 --- a/Sources/Basic/SortedArray.swift +++ b/Sources/Basic/SortedArray.swift @@ -69,7 +69,7 @@ public struct SortedArray: CustomStringConvertible { /// Insert the given sequence, maintaining the sort order. public mutating func insert(contentsOf newElements: S) where S.Iterator.Element == Element { - var newElements: Array = newElements.sorted(by: areInIncreasingOrder) + let newElements: Array = newElements.sorted(by: areInIncreasingOrder) guard !newElements.isEmpty else { return }