]> granicus.if.org Git - clang/commit
Fix 41 of the 61 tests which fail with modules enabled: we were computing and
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Apr 2013 01:51:11 +0000 (01:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Apr 2013 01:51:11 +0000 (01:51 +0000)
commitd613ac9c57936d219d9eecba1d061a45ff7a3ae8
treea00e5f5d40b301e5e58a3c16b453994301bace9e
parentb846381fc3099b2340ba8c74d16178203a60d9a0
Fix 41 of the 61 tests which fail with modules enabled: we were computing and
caching the linkage for a declaration before we set up its redeclaration chain,
when determining whether a declaration could be a redeclaration of something
from an unimported submodule. We actually want to look at the declaration as if
it were not a redeclaration here, so compute the linkage but don't cache it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178733 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
lib/Sema/SemaDecl.cpp
test/PCH/chain-late-anonymous-namespace.cpp
test/PCH/cxx-constexpr.cpp
test/Sema/private-extern.c
test/SemaCXX/linkage2.cpp