]> granicus.if.org Git - clang/commit
MS ABI: The latest VC "14" CTP implements deleted virtual functions
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 12 Sep 2014 04:38:08 +0000 (04:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 12 Sep 2014 04:38:08 +0000 (04:38 +0000)
commitfee0818867233e13e4173c7e7f7e5f97b0fb4659
tree5ced7c18af9b3eccdb3cdb45075a290297cbadc6
parent82903d62ebe3245a16b2086bf702990ca56401e3
MS ABI: The latest VC "14" CTP implements deleted virtual functions

Deleted virtual functions get _purecall inserted into the vftable.
Earlier CTPs would simply stick nullptr in there.

N.B.  MSVC can't handle deleted virtual functions which require return
adjusting thunks, they give an error that a deleted function couldn't be
called inside of a compiler generated function.  We get this correct by
making the thunk have a __purecall entry as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/VTableBuilder.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp