Remove unneeded assertion and don't return a null CXString.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101585 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp
index b35ca0b..2d623e3 100644
--- a/tools/CIndex/CIndexUSRs.cpp
+++ b/tools/CIndex/CIndexUSRs.cpp
@@ -340,7 +340,7 @@
// 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 @@
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);
}