llvm.org GIT mirror llvm / 54ee04c
llvm-undname: Don't crash on incomplete enum tag manglings Found by inspection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358238 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
19061906 TT = Arena.alloc(TagKind::Class);
19071907 break;
19081908 case 'W':
1909 if (MangledName.popFront() != '4') {
1909 if (!MangledName.consumeFront('4')) {
19101910 Error = true;
19111911 return nullptr;
19121912 }
103103 ; CHECK-EMPTY:
104104 ; CHECK-NEXT: ??C@$
105105 ; CHECK-NEXT: error: Invalid mangled name
106
107 ?x@@3PAW
108 ; CHECK-EMPTY:
109 ; CHECK-NEXT: ?x@@3PAW
110 ; CHECK-NEXT: error: Invalid mangled name