[clang-cl] Fix PR38934: failing to dllexport class template member w/ explicit instan...
authorHans Wennborg <hans@hanshq.net>
Fri, 14 Sep 2018 15:18:30 +0000 (15:18 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 14 Sep 2018 15:18:30 +0000 (15:18 +0000)
commitb51a70396e5d99bec354085f7cf96d127988f37b
tree9ae8be29cec2c34aa083f2373f849dfd42fbe4c4
parentc0b474f67a33f7106e19ac21bbbe2fdd2ec1661b
[clang-cl] Fix PR38934: failing to dllexport class template member w/ explicit instantiation and PCH

The code in ASTContext::DeclMustBeEmitted was supposed to handle this,
but didn't take into account that synthesized members such as operator=
might not get marked as template specializations, because they're
synthesized on the instantiation directly when handling the class-level
dllexport attribute.

llvm-svn: 342240
clang/lib/AST/ASTContext.cpp
clang/test/CodeGen/pch-dllexport.cpp