From baf33fc56f35faf509800310c05301aded17a391 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 31 Jan 2010 00:41:05 +0000 Subject: [PATCH] CIndex/USRs: Disable a bogus assert, we don't want CIndex to crash liberally. I have sent Ted a test case for this. llvm-svn: 94935 --- clang/tools/CIndex/CIndexUSRs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/CIndex/CIndexUSRs.cpp b/clang/tools/CIndex/CIndexUSRs.cpp index fd605fb68d1b..a992dbf12a00 100644 --- a/clang/tools/CIndex/CIndexUSRs.cpp +++ b/clang/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; }