]> granicus.if.org Git - clang/commit
[Sema] Respect DLL attributes more faithfully
authorShoaib Meenai <smeenai@fb.com>
Mon, 5 Dec 2016 18:01:35 +0000 (18:01 +0000)
committerShoaib Meenai <smeenai@fb.com>
Mon, 5 Dec 2016 18:01:35 +0000 (18:01 +0000)
commitb4cba08cd79edf1187ebda476abee6633d2a9e96
treeedff043b34241c043be24677f1cce530b9a710fd
parentc40a10d07a6dd296afc88c7facd401915210b622
[Sema] Respect DLL attributes more faithfully

On MSVC, if an implicit instantiation already exists and an explicit
instantiation definition with a DLL attribute is created, the DLL
attribute still takes effect. Make clang match this behavior for
exporting.

Differential Revision: https://reviews.llvm.org/D26657

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288682 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/CodeGenCXX/dllexport.cpp
test/CodeGenCXX/windows-itanium-dllexport.cpp