]> granicus.if.org Git - clang/commit
MS ABI: Let non-virtual method overloads participate in vftable ordering
authorReid Kleckner <reid@kleckner.net>
Wed, 19 Feb 2014 22:06:10 +0000 (22:06 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 19 Feb 2014 22:06:10 +0000 (22:06 +0000)
commit153fe11633e48f661da0e18d6979e6db04d9e0b9
tree2fe305760573cb42be87c40c254b564bd392d20c
parent0fcf59c5a539f20b9e5e5230548de3dcc25cc8e0
MS ABI: Let non-virtual method overloads participate in vftable ordering

In the Microsoft ABI, the vftable is laid out as if all methods in every
overload set were declared in reverse order of declaration at the point
of declaration of the first overload in the set.

Previously we only considered virtual methods in an overload set, but
MSVC includes non-virtual methods for ordering purposes.

Fixes PR18902.

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