We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 45e5116 + e8ce388 commit 5034dc6Copy full SHA for 5034dc6
lib/Demangling/Demangler.cpp
@@ -442,6 +442,10 @@ NodePointer Demangler::demangleMultiSubstitutions() {
442
int RepeatCount = -1;
443
while (true) {
444
char c = nextChar();
445
+ if (c == 0) {
446
+ // End of text.
447
+ return nullptr;
448
+ }
449
if (isLowerLetter(c)) {
450
// It's a substitution with an index < 26.
451
NodePointer Nd = pushMultiSubstitutions(RepeatCount, c - 'a');
test/Demangle/Inputs/manglings.txt
@@ -256,4 +256,5 @@ _T08_ElementQzSbs5Error_pIxxdzo_ABSbsAC_pIxidzo_s26RangeReplaceableCollectionRzA
256
_T0Ix_IyB_Tr ---> {T:} reabstraction thunk from @callee_owned () -> () to @callee_unowned @convention(block) () -> ()
257
_T0Rml ---> _T0Rml
258
_T0Tk ---> _T0Tk
259
+_T0A8 ---> _T0A8
260
0 commit comments