mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes another 'SILBuilder has no valid insertion point' assertion failure seen when compiling Carthage. rdar://68759819
15 lines
637 B
Swift
15 lines
637 B
Swift
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -profile-generate -profile-coverage-mapping -emit-sil -module-name coverage_non_constructible_enum %s | %FileCheck %s
|
|
|
|
// Reduced from Carthage (https://github.com/Carthage/Carthage).
|
|
enum NoError: Error, Equatable {
|
|
// CHECK-LABEL: static coverage_non_constructible_enum.NoError.== infix
|
|
// CHECK: builtin "int_instrprof_increment"
|
|
// CHECK: unreachable
|
|
|
|
// CHECK-LABEL: sil_coverage_map {{.*}} static coverage_non_constructible_enum.NoError.== infix
|
|
// CHECK-NEXT: [[@LINE+1]]:54 -> [[@LINE+3]]:4 : 0
|
|
static func ==(lhs: NoError, rhs: NoError) -> Bool {
|
|
return true
|
|
}
|
|
}
|