[cfe-commits] r94935 - /cfe/trunk/tools/CIndex/CIndexUSRs.cpp

Daniel Dunbar daniel at zuster.org
Sat Jan 30 16:41:05 PST 2010


Author: ddunbar
Date: Sat Jan 30 18:41:05 2010
New Revision: 94935

URL: http://llvm.org/viewvc/llvm-project?rev=94935&view=rev
Log:
CIndex/USRs: Disable a bogus assert, we don't want CIndex to crash liberally. I
have sent Ted a test case for this.

Modified:
    cfe/trunk/tools/CIndex/CIndexUSRs.cpp

Modified: cfe/trunk/tools/CIndex/CIndexUSRs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndexUSRs.cpp?rev=94935&r1=94934&r2=94935&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndexUSRs.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndexUSRs.cpp Sat Jan 30 18:41:05 2010
@@ -74,7 +74,7 @@
 void USRGenerator::VisitNamedDecl(NamedDecl *D) {
   VisitDeclContext(D->getDeclContext());
   const std::string &s = D->getNameAsString();
-  assert(!s.empty());
+//  assert(!s.empty());
   Out << "@^" << s;
 }
 





More information about the cfe-commits mailing list