llvm-undname: Consistently use "return nullptr" in functions returning pointers

llvm-svn: 358492
This commit is contained in:
Nico Weber 2019-04-16 14:24:42 +00:00
parent c035c243da
commit 930994ce14
1 changed files with 4 additions and 4 deletions

View File

@ -2056,7 +2056,7 @@ NodeArrayNode *
Demangler::demangleFunctionParameterList(StringView &MangledName) {
// Empty parameter list.
if (MangledName.consumeFront('X'))
return {};
return nullptr;
NodeList *Head = Arena.alloc<NodeList>();
NodeList **Current = &Head;
@ -2069,7 +2069,7 @@ Demangler::demangleFunctionParameterList(StringView &MangledName) {
size_t N = MangledName[0] - '0';
if (N >= Backrefs.FunctionParamCount) {
Error = true;
return {};
return nullptr;
}
MangledName = MangledName.dropFront();
@ -2100,7 +2100,7 @@ Demangler::demangleFunctionParameterList(StringView &MangledName) {
}
if (Error)
return {};
return nullptr;
NodeArrayNode *NA = nodeListToNodeArray(Arena, Head, Count);
// A non-empty parameter list is terminated by either 'Z' (variadic) parameter
@ -2116,7 +2116,7 @@ Demangler::demangleFunctionParameterList(StringView &MangledName) {
}
Error = true;
return {};
return nullptr;
}
NodeArrayNode *