llvm.org GIT mirror llvm / 14a17d2
llvm-undname: Consistently use "return nullptr" in functions returning pointers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358492 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
20552055 Demangler::demangleFunctionParameterList(StringView &MangledName) {
20562056 // Empty parameter list.
20572057 if (MangledName.consumeFront('X'))
2058 return {};
2058 return nullptr;
20592059
20602060 NodeList *Head = Arena.alloc();
20612061 NodeList **Current = &Head;
20682068 size_t N = MangledName[0] - '0';
20692069 if (N >= Backrefs.FunctionParamCount) {
20702070 Error = true;
2071 return {};
2071 return nullptr;
20722072 }
20732073 MangledName = MangledName.dropFront();
20742074
20992099 }
21002100
21012101 if (Error)
2102 return {};
2102 return nullptr;
21032103
21042104 NodeArrayNode *NA = nodeListToNodeArray(Arena, Head, Count);
21052105 // A non-empty parameter list is terminated by either 'Z' (variadic) parameter
21152115 }
21162116
21172117 Error = true;
2118 return {};
2118 return nullptr;
21192119 }
21202120
21212121 NodeArrayNode *