forked from OSchip/llvm-project
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
This commit is contained in:
parent
45dc842a0e
commit
baf33fc56f
|
@ -74,7 +74,7 @@ void USRGenerator::VisitFunctionDecl(FunctionDecl *D) {
|
||||||
void USRGenerator::VisitNamedDecl(NamedDecl *D) {
|
void USRGenerator::VisitNamedDecl(NamedDecl *D) {
|
||||||
VisitDeclContext(D->getDeclContext());
|
VisitDeclContext(D->getDeclContext());
|
||||||
const std::string &s = D->getNameAsString();
|
const std::string &s = D->getNameAsString();
|
||||||
assert(!s.empty());
|
// assert(!s.empty());
|
||||||
Out << "@^" << s;
|
Out << "@^" << s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue