diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-28 14:09:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-28 14:09:46 +0000 |
commit | eee0a3abff78a1e73bfcea8338ea750718bc610b (patch) | |
tree | 88d6ec24dae8a3fac37f2f2e30737f409eb50ad2 /clang/lib/AST/ASTContext.cpp | |
parent | 591ab5a83049a283bc6a8968149914a78dd84382 (diff) | |
download | bcm5719-llvm-eee0a3abff78a1e73bfcea8338ea750718bc610b.tar.gz bcm5719-llvm-eee0a3abff78a1e73bfcea8338ea750718bc610b.zip |
Fix a crash when we were trying to compute the linkage too early.
llvm-svn: 182773
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index f2dda23b4d5..f5e4b42d276 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -7999,8 +7999,7 @@ size_t ASTContext::getSideTableAllocatedMemory() const { void ASTContext::addUnnamedTag(const TagDecl *Tag) { // FIXME: This mangling should be applied to function local classes too if (!Tag->getName().empty() || Tag->getTypedefNameForAnonDecl() || - !isa<CXXRecordDecl>(Tag->getParent()) || - !Tag->isExternallyVisible()) + !isa<CXXRecordDecl>(Tag->getParent())) return; std::pair<llvm::DenseMap<const DeclContext *, unsigned>::iterator, bool> P = |