]> granicus.if.org Git - clang/commit
Track definition merging on the canonical declaration even when local
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Sep 2018 23:37:00 +0000 (23:37 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Sep 2018 23:37:00 +0000 (23:37 +0000)
commit7b26c1cf7574c1156ccaad5a34d23fadbf006a89
tree61184d693640632231e4cb367d2ef22a3c1374f6
parent3a8c8e45f9e83f779c08b973fcb7a5a16c42e544
Track definition merging on the canonical declaration even when local
submodule visibility is disabled.

Attempting to pick a specific declaration to make visible when the
module containing the merged declaration becomes visible is error-prone,
as we don't yet know which declaration we'll choose to be the definition
when we are informed of the merging.

This reinstates r342019, reverted in r342020. The regression previously
observed after this commit was fixed in r342096.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342097 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/Sema/SemaType.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
test/Modules/merge-template-pattern-visibility-3.cpp [new file with mode: 0644]