]> granicus.if.org Git - clang/commit
Fix a vftable mangling bug
authorReid Kleckner <reid@kleckner.net>
Mon, 22 Sep 2014 23:14:46 +0000 (23:14 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 22 Sep 2014 23:14:46 +0000 (23:14 +0000)
commit938cd3af237da4a43f45c4b1d77c0b1d454eb1c0
tree34834ac4b6a22e01dc20494e5e787ba7bcb336d2
parent8364d0e1cbedd59d554c0632a77b3b61ccfa7671
Fix a vftable mangling bug

We need to walk the class hierarchy twice: once in depth-first base
specifier order for mangling and again in depth-first layout order for
vftable layout.

Vftable layout seems to depend on the full path from the most derived
class to the base containing the vfptr.

Fixes PR21031.

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