mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Debug Info: type-unique enum types by virtue of their mangled name.
rdar://problem/20015686 Swift SVN r26104
This commit is contained in:
@@ -14,8 +14,8 @@ func unwrapTrivialGeneric<T, U>(tg: TrivialGeneric<T, U>) -> (T, U) {
|
||||
func wrapTrivialGeneric<T, U>(t: T, u: U) -> TrivialGeneric<T, U> {
|
||||
return .x(t, u)
|
||||
}
|
||||
// CHECK-DAG: !MDGlobalVariable(name: "tg",{{.*}} line: [[@LINE+2]],{{.*}} type: ![[TGT:[^,]+]],{{.*}} isLocal: false, isDefinition: true
|
||||
// CHECK-DAG: ![[TGT]] = !MDCompositeType(tag: DW_TAG_union_type, name: "_TtGO12generic_enum14TrivialGenericSiSS_"
|
||||
// CHECK-DAG: !MDGlobalVariable(name: "tg",{{.*}} line: [[@LINE+2]],{{.*}} type: !"_TtGO12generic_enum14TrivialGenericSiSS_",{{.*}} isLocal: false, isDefinition: true
|
||||
// CHECK-DAG: !MDCompositeType(tag: DW_TAG_union_type, name: "TrivialGeneric", {{.*}}identifier: "_TtGO12generic_enum14TrivialGenericSiSS_"
|
||||
var tg : TrivialGeneric<Int, String> = .x(23, "skidoo")
|
||||
switch tg {
|
||||
case .x(var t, var u):
|
||||
|
||||
Reference in New Issue
Block a user