Skip to content

Commit a84c65c

Browse files
committed
[Demangle][Rust] Parse slice type
Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102578
1 parent b42400c commit a84c65c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

llvm/lib/Demangle/RustDemangle.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ void Demangler::demangleType() {
436436
demangleConst();
437437
print("]");
438438
break;
439+
case 'S':
440+
print("[");
441+
demangleType();
442+
print("]");
443+
break;
439444
default:
440445
Position = Start;
441446
demanglePath(InType::Yes);

llvm/test/Demangle/rust.test

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ CHECK: named::<Name<>>
160160
CHECK: types::<[u8; 0]>
161161
_RIC5typesAhj0_E
162162

163+
CHECK: types::<[_]>
164+
_RIC5typesSpE
165+
163166
; Integer constants. Test value demangling.
164167

165168
CHECK: integer::<0>

0 commit comments

Comments
 (0)