mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-19 23:24:47 -04:00
llvm-undname: Don't crash on incomplete enum tag manglings
Found by inspection. llvm-svn: 358238
This commit is contained in:
@@ -1907,7 +1907,7 @@ TagTypeNode *Demangler::demangleClassType(StringView &MangledName) {
|
||||
TT = Arena.alloc<TagTypeNode>(TagKind::Class);
|
||||
break;
|
||||
case 'W':
|
||||
if (MangledName.popFront() != '4') {
|
||||
if (!MangledName.consumeFront('4')) {
|
||||
Error = true;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user