diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-04-17 00:21:38 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-04-17 00:21:38 +0000 |
| commit | 551c178efc67c9382490460de61d54060c41faa6 (patch) | |
| tree | 964c96ac823d239a61358aac468b73f0bb791e3a | |
| parent | 2543e303e13bebf674465a291d05f8b96ec9397a (diff) | |
| download | bcm5719-llvm-551c178efc67c9382490460de61d54060c41faa6.tar.gz bcm5719-llvm-551c178efc67c9382490460de61d54060c41faa6.zip | |
Remove unneeded assertion and don't return a null CXString.
llvm-svn: 101585
| -rw-r--r-- | clang/tools/CIndex/CIndexUSRs.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/tools/CIndex/CIndexUSRs.cpp b/clang/tools/CIndex/CIndexUSRs.cpp index b35ca0bcaf6..2d623e33f60 100644 --- a/clang/tools/CIndex/CIndexUSRs.cpp +++ b/clang/tools/CIndex/CIndexUSRs.cpp @@ -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); } |

