[modules] If we load two declarations with typedef names for linkage purposes
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 22 Jan 2015 02:21:23 +0000 (02:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 22 Jan 2015 02:21:23 +0000 (02:21 +0000)
commitf1f4bc217627a6593246f837bb1bcbef3cc92ad6
tree1f68b3212d81b19d34b7af8c882d019581dabcd9
parent00270df5175e97951836f4aa721d45c902f4b4ee
[modules] If we load two declarations with typedef names for linkage purposes
on top of a local declaration of the same entity, we still need to remember
that we loaded the first one or we may fail to merge the second one properly.

llvm-svn: 226765
clang/lib/Serialization/ASTReaderDecl.cpp
clang/test/Modules/Inputs/merge-name-for-linkage/a.h [new file with mode: 0644]
clang/test/Modules/Inputs/merge-name-for-linkage/b.h [new file with mode: 0644]
clang/test/Modules/Inputs/merge-name-for-linkage/module.modulemap [new file with mode: 0644]
clang/test/Modules/merge-name-for-linkage.cc [new file with mode: 0644]