Skip to content

Commit

Permalink
Fix compilation for swift 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
koliyo committed Oct 10, 2023
1 parent 3919e53 commit b8a81f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/CodeGen/LLVM/FloatingPointPredicate.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Core
import LLVM
import Core

extension LLVM.FloatingPointPredicate {
public init(_ p: Core.FloatingPointPredicate) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodeGen/LLVM/IntegerPredicate.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Core
import LLVM
import Core

extension LLVM.IntegerPredicate {
public init(_ p: Core.IntegerPredicate) {
Expand Down
10 changes: 5 additions & 5 deletions Sources/CodeGen/LLVM/OverflowBehavior.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Core
import LLVM
import Core

extension LLVM.OverflowBehavior {
public init(_ ob: Core.OverflowBehavior) {
self = switch ob {
case .ignore: .ignore
case .nuw: .nuw
case .nsw: .nsw
switch ob {
case .ignore: self = OverflowBehavior.ignore
case .nuw: self = OverflowBehavior.nuw
case .nsw: self = OverflowBehavior.nsw
}
}
}

0 comments on commit b8a81f6

Please sign in to comment.