From: Daniel Dunbar Date: Sun, 31 Jan 2010 00:41:05 +0000 (+0000) Subject: CIndex/USRs: Disable a bogus assert, we don't want CIndex to crash liberally. I X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9f696da69e6b7ad50f527ab33be396edf7d1424;p=clang CIndex/USRs: Disable a bogus assert, we don't want CIndex to crash liberally. I have sent Ted a test case for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94935 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp index fd605fb68d..a992dbf12a 100644 --- a/tools/CIndex/CIndexUSRs.cpp +++ b/tools/CIndex/CIndexUSRs.cpp @@ -74,7 +74,7 @@ void USRGenerator::VisitFunctionDecl(FunctionDecl *D) { void USRGenerator::VisitNamedDecl(NamedDecl *D) { VisitDeclContext(D->getDeclContext()); const std::string &s = D->getNameAsString(); - assert(!s.empty()); +// assert(!s.empty()); Out << "@^" << s; }