DotKuribo / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
http://llvm.org
3 stars 3 forks source link

Fix vtable placement in subclasses #11

Closed JoshuaMKW closed 1 year ago

JoshuaMKW commented 1 year ago

Subclasses of primary bases with non standard virtual table placements don't inherit the primary base's vtable offset. This fixes that by explicitly using the primary base's vtable offset when the class having it's layout constructed is a subclass with virtual methods.