Fix r165005: The lexical DeclContext is not the right place to make a decision about...
authorAxel Naumann <Axel.Naumann@cern.ch>
Thu, 4 Oct 2012 07:34:43 +0000 (07:34 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Thu, 4 Oct 2012 07:34:43 +0000 (07:34 +0000)
commitc6848efaac6836930ac9558060628cb094db3ff9
tree0930ac0de7c86c8e5cf8fac6acc31d1e75f71561
parentcb13fff13d939c70183a9277b7449aa15be6268e
Fix r165005: The lexical DeclContext is not the right place to make a decision about whether we need to call tryAddTopLevelDecl or not. That call should be made when the DeclContext's redeclaration context is the translation unit.

llvm-svn: 165215
clang/lib/Serialization/ASTReaderDecl.cpp