]> granicus.if.org Git - clang/commit
[ms-cxxabi] Fix assert in unspecified inheritance memptr emission
authorReid Kleckner <reid@kleckner.net>
Tue, 15 Oct 2013 01:18:02 +0000 (01:18 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 15 Oct 2013 01:18:02 +0000 (01:18 +0000)
commit42090d6d786accb3551097f0ef1f15d44713982c
tree95d1675c3bf7124cab67e9b7428984dcc1138395
parentb3c71facc346f70fe4958f766ab55bd537229195
[ms-cxxabi] Fix assert in unspecified inheritance memptr emission

If a class is using the unspecified inheritance model for member
pointers and later we find the class is defined to use single
inheritance, zero out the vbptr offset field of the member pointer when
it is formed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-member-pointers.cpp