Skip to content

Commit 413fb09

Browse files
authored
Merge pull request #4 from llvm-swift/bump
Update to Swift 4.2
2 parents 94ea2de + 86946e9 commit 413fb09

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1
1+
4.2

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
include:
66
- os: osx
77
language: objective-c
8-
osx_image: xcode9.3
8+
osx_image: xcode10.2
99
script:
1010
- swift build
1111
- swift run pst-lite

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:4.2
22

33
import PackageDescription
44

Sources/PrettyStackTrace/PrettyStackTrace.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// PrettyStackTrace.swift
22
///
3-
/// Copyright 2018, The LLVMSwift Project.
3+
/// Copyright 2018-2019, The LLVMSwift Project.
44
///
55
/// This project is released under the MIT license, a copy of which is
66
/// available in the repository.
@@ -99,7 +99,7 @@ private func writeLeadingSpacesAndStackPosition(_ int: UInt) {
9999
while int > 0 {
100100
let remInt = int.remainderReportingOverflow(dividingBy: 10).partialValue
101101
let remInt8 = Int8(truncatingIfNeeded: remInt)
102-
int = int.unsafeDivided(by: 10)
102+
int = int.dividedReportingOverflow(by: 10).0
103103
end.pointee = remInt8 &+ 48 /// (ascii '0')
104104
end = end.predecessor()
105105
}

Sources/pst-file-check/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func run() -> Int {
7070
}
7171

7272
var options = FileCheckOptions()
73-
binder.fill(results, into: &options)
73+
try! binder.fill(parseResult: results, into: &options)
7474

7575
let fileHandle: FileHandle
7676
if let input = results.get(inputFile) {

0 commit comments

Comments
 (0)