diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-08-13 01:23:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-08-13 01:23:33 +0000 |
commit | bb853c79c0d61acaa0dd9aa4f77cded334166946 (patch) | |
tree | 03f13744f52312d2161759fb54b25fbe8219e3ae /clang/lib/AST/ASTDumper.cpp | |
parent | 46ef7ce2833f2efffc009d3a657c2c4f8f3569ea (diff) | |
download | bcm5719-llvm-bb853c79c0d61acaa0dd9aa4f77cded334166946.tar.gz bcm5719-llvm-bb853c79c0d61acaa0dd9aa4f77cded334166946.zip |
[modules] When performing a lookup into a namespace, ensure that any later
redefinitions of that namespace have already been loaded. When writing out the
names in a namespace, if we see a name that is locally declared and had
imported declarations merged on top of it, export the local declaration as the
lookup result, because it will be the most recent declaration of that entity in
the redeclaration chain of an importer of the module.
llvm-svn: 215518
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index 5d6e18a4506..d9dc8b57dfb 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -826,7 +826,7 @@ void ASTDumper::dumpDecl(const Decl *D) { OS << " implicit"; if (D->isUsed()) OS << " used"; - else if (D->isReferenced()) + else if (D->isThisDeclarationReferenced()) OS << " referenced"; if (D->isInvalidDecl()) OS << " invalid"; |