]> granicus.if.org Git - clang/commit
[MS ABI] Correctly handle dllimport'd explicit instantiation declaration w/ vbases
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 22 Feb 2016 17:22:08 +0000 (17:22 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 22 Feb 2016 17:22:08 +0000 (17:22 +0000)
commita5b99c67c7faf012cad8ceb1e3e8c4fc4b67b4e3
tree5fb3dc5837cffb616a75e6e6040b87302c0c127c
parent4ea147409fb66aacd7bcccbae40e6ab3f5df3b63
[MS ABI] Correctly handle dllimport'd explicit instantiation declaration w/ vbases

We gave a VBTable dllimport storage class and external linkage while
also providing an initializer.  An initializer is only valid if the
VBTable has available_externally linkage.  Fix this by setting the
linkage to available_externally in situ while generating the
initializer.

This fixes PR26686.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261535 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/PR26569.cpp