forked from OSchip/llvm-project
[MicrosoftDemangle] Set error to true when returning nullptr.
This commit is contained in:
parent
44978a234b
commit
bf1e96d620
|
@ -823,11 +823,15 @@ SymbolNode *Demangler::parse(StringView &MangledName) {
|
|||
}
|
||||
|
||||
TagTypeNode *Demangler::parseTagUniqueName(StringView &MangledName) {
|
||||
if (!MangledName.consumeFront(".?A"))
|
||||
if (!MangledName.consumeFront(".?A")) {
|
||||
Error = true;
|
||||
return nullptr;
|
||||
}
|
||||
MangledName.consumeFront(".?A");
|
||||
if (MangledName.empty())
|
||||
if (MangledName.empty()) {
|
||||
Error = true;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return demangleClassType(MangledName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue