Skip to content

Commit 44c3d61

Browse files
committed
[Remangler] Handle dependent pseudogeneric sigs.
Just use the same implementation as the OldRemangler.
1 parent 6aaccf0 commit 44c3d61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Demangling/Remangler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,7 @@ ManglingError Remangler::mangleDependentMemberType(Node *node, unsigned depth) {
12121212

12131213
ManglingError Remangler::mangleDependentPseudogenericSignature(Node *node,
12141214
unsigned depth) {
1215-
// handled inline
1216-
return MANGLING_ERROR(ManglingError::UnsupportedNodeKind, node);
1215+
return mangleDependentGenericSignature(node, depth + 1);
12171216
}
12181217

12191218
ManglingError Remangler::mangleDestructor(Node *node, unsigned depth) {

test/Demangle/Inputs/manglings.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,4 @@ $s9MacroUser016testFreestandingA9ExpansionyyF4Foo3L_V23bitwidthNumberedStructsfM
456456
@__swiftmacro_1a13testStringifyAA1bySi_SitF9stringifyfMf_ ---> freestanding macro expansion #1 of stringify in a.testStringify(a: Swift.Int, b: Swift.Int) -> ()
457457
@__swiftmacro_18macro_expand_peers1SV1f20addCompletionHandlerfMp_ ---> peer macro @addCompletionHandler expansion #1 of f in macro_expand_peers.S
458458
@__swiftmacro_9MacroUser16MemberNotCoveredV33_4361AD9339943F52AE6186DD51E04E91Ll0dE0fMf0_ ---> freestanding macro expansion #2 of NotCovered(in _4361AD9339943F52AE6186DD51E04E91) in MacroUser.MemberNotCovered
459+
$sxSo8_NSRangeVRlzCRl_Cr0_llySo12ModelRequestCyxq_GIsPetWAlYl_TC ---> coroutine continuation prototype for @escaping @convention(thin) @convention(witness_method) @yield_once <A, B where A: AnyObject, B: AnyObject> @substituted <A> (@inout A) -> (@yields @inout __C._NSRange) for <__C.ModelRequest<A, B>>

0 commit comments

Comments
 (0)