Skip to content

Commit 9009e1c

Browse files
authored
Merge pull request #4769 from hamishknight/wrapping-paper
[lldb] Remove ParenType
2 parents 1a831c9 + 3814500 commit 9009e1c

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6114,7 +6114,6 @@ SwiftASTContext::GetTypeInfo(opaque_compiler_type_t type,
61146114

61156115
case swift::TypeKind::Optional:
61166116
case swift::TypeKind::TypeAlias:
6117-
case swift::TypeKind::Paren:
61186117
case swift::TypeKind::Dictionary:
61196118
case swift::TypeKind::ArraySlice:
61206119
assert(false && "Not a canonical type");
@@ -6205,7 +6204,6 @@ lldb::TypeClass SwiftASTContext::GetTypeClass(opaque_compiler_type_t type) {
62056204

62066205
case swift::TypeKind::Optional:
62076206
case swift::TypeKind::TypeAlias:
6208-
case swift::TypeKind::Paren:
62096207
case swift::TypeKind::Dictionary:
62106208
case swift::TypeKind::ArraySlice:
62116209
assert(false && "Not a canonical type");
@@ -6708,7 +6706,6 @@ lldb::Encoding SwiftASTContext::GetEncoding(opaque_compiler_type_t type,
67086706

67096707
case swift::TypeKind::Optional:
67106708
case swift::TypeKind::TypeAlias:
6711-
case swift::TypeKind::Paren:
67126709
case swift::TypeKind::Dictionary:
67136710
case swift::TypeKind::ArraySlice:
67146711
assert(false && "Not a canonical type");
@@ -6836,7 +6833,6 @@ SwiftASTContext::GetNumChildren(opaque_compiler_type_t type,
68366833

68376834
case swift::TypeKind::Optional:
68386835
case swift::TypeKind::TypeAlias:
6839-
case swift::TypeKind::Paren:
68406836
case swift::TypeKind::Dictionary:
68416837
case swift::TypeKind::ArraySlice:
68426838
assert(false && "Not a canonical type");
@@ -6971,7 +6967,6 @@ uint32_t SwiftASTContext::GetNumFields(opaque_compiler_type_t type,
69716967

69726968
case swift::TypeKind::Optional:
69736969
case swift::TypeKind::TypeAlias:
6974-
case swift::TypeKind::Paren:
69756970
case swift::TypeKind::Dictionary:
69766971
case swift::TypeKind::ArraySlice:
69776972
assert(false && "Not a canonical type");
@@ -7272,7 +7267,6 @@ CompilerType SwiftASTContext::GetFieldAtIndex(opaque_compiler_type_t type,
72727267

72737268
case swift::TypeKind::Optional:
72747269
case swift::TypeKind::TypeAlias:
7275-
case swift::TypeKind::Paren:
72767270
case swift::TypeKind::Dictionary:
72777271
case swift::TypeKind::ArraySlice:
72787272
assert(false && "Not a canonical type");
@@ -7366,7 +7360,6 @@ uint32_t SwiftASTContext::GetNumPointeeChildren(opaque_compiler_type_t type) {
73667360

73677361
case swift::TypeKind::Optional:
73687362
case swift::TypeKind::TypeAlias:
7369-
case swift::TypeKind::Paren:
73707363
case swift::TypeKind::Dictionary:
73717364
case swift::TypeKind::ArraySlice:
73727365
assert(false && "Not a canonical type");
@@ -7724,7 +7717,6 @@ llvm::Expected<CompilerType> SwiftASTContext::GetChildCompilerTypeAtIndex(
77247717

77257718
case swift::TypeKind::Optional:
77267719
case swift::TypeKind::TypeAlias:
7727-
case swift::TypeKind::Paren:
77287720
case swift::TypeKind::Dictionary:
77297721
case swift::TypeKind::ArraySlice:
77307722
assert(false && "Not a canonical type");
@@ -7961,7 +7953,6 @@ size_t SwiftASTContext::GetIndexOfChildMemberWithName(
79617953

79627954
case swift::TypeKind::Optional:
79637955
case swift::TypeKind::TypeAlias:
7964-
case swift::TypeKind::Paren:
79657956
case swift::TypeKind::Dictionary:
79667957
case swift::TypeKind::ArraySlice:
79677958
assert(false && "Not a canonical type");
@@ -8340,7 +8331,6 @@ bool SwiftASTContext::DumpTypeValue(
83408331

83418332
case swift::TypeKind::Optional:
83428333
case swift::TypeKind::TypeAlias:
8343-
case swift::TypeKind::Paren:
83448334
case swift::TypeKind::Dictionary:
83458335
case swift::TypeKind::ArraySlice:
83468336
assert(false && "Not a canonical type");

lldb/test/Shell/SwiftREPL/Deadlock.test

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
let a = 9007199254740991.0
99
// CHECK: a: Double = 9007199254740991
1010
(a * a - a * a).squareRoot()
11-
// CHECK: (Double) = {
12-
// CHECK-NEXT: _value = 0
13-
// CHECK-NEXT: }
11+
// CHECK: Double = 0
1412
(a * a).addingProduct(-a, a).squareRoot()
15-
// CHECK: (Double) = {
16-
// CHECK-NEXT: _value = NaN
17-
// CHECK-NEXT: }
13+
// CHECK: Double = NaN

0 commit comments

Comments
 (0)