Skip to content

Commit 600b59b

Browse files
committed
[Demangler] Fix a small issue with symbolic references in mangled names.
Found by inspection.
1 parent f759296 commit 600b59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Demangling/Demangler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ swift::Demangle::makeSymbolicMangledNameStringRef(const char *base) {
136136
// Skip over symbolic references.
137137
if (*end >= '\x01' && *end <= '\x17')
138138
end += sizeof(uint32_t);
139-
if (*end >= '\x18' && *end <= '\x1F')
139+
else if (*end >= '\x18' && *end <= '\x1F')
140140
end += sizeof(void*);
141141
++end;
142142
}

0 commit comments

Comments
 (0)