[modules] When we merge two definitions of a function, mark the retained
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Sep 2016 21:06:40 +0000 (21:06 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Sep 2016 21:06:40 +0000 (21:06 +0000)
commit6561f92b6237b17006a4b25f72a0085972b7765a
tree997983c1144f035d25eb8e40d60b17b12608cd2f
parent2f98f31c77a9db44eae9fef9be79611735e150b2
[modules] When we merge two definitions of a function, mark the retained
definition as visible in the discarded definition's module, as we do for
other kinds of definition.

llvm-svn: 281258
clang/include/clang/Serialization/ASTReader.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/test/Modules/Inputs/merge-template-pattern-visibility/b.h
clang/test/Modules/Inputs/merge-template-pattern-visibility/module.modulemap
clang/test/Modules/merge-template-pattern-visibility.cpp