forked from OSchip/llvm-project
Remove unneeded assertion and don't return a null CXString.
llvm-svn: 101585
This commit is contained in:
parent
2543e303e1
commit
551c178efc
|
|
@ -340,7 +340,7 @@ static CXString getDeclCursorUSR(const CXCursor &C) {
|
|||
|
||||
// Don't generate USRs for things with invalid locations.
|
||||
if (!D || D->getLocStart().isInvalid())
|
||||
return createCXString(NULL);
|
||||
return createCXString("");
|
||||
|
||||
// Check if the cursor has 'NoLinkage'.
|
||||
if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
|
||||
|
|
@ -369,8 +369,6 @@ static CXString getDeclCursorUSR(const CXCursor &C) {
|
|||
if (SUG->ignoreResults())
|
||||
return createCXString("");
|
||||
|
||||
assert(SUG.str().size() > 3);
|
||||
|
||||
// Return a copy of the string that must be disposed by the caller.
|
||||
return createCXString(SUG.str(), true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue