diff options
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 66f48c0e3d..3962ecdc38 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -509,15 +509,7 @@ public: if (ForVirtualBase) extra = offsets.size(); - // vtables are composed from the chain of primaries. - if (PrimaryBase) { - if (PrimaryBaseWasVirtual) - IndirectPrimary.insert(PrimaryBase); - Primaries(PrimaryBase, PrimaryBaseWasVirtual|MorallyVirtual, Offset); - } - - // And add the virtuals for the class to the primary vtable. - AddMethods(RD, MorallyVirtual, Offset); + Primaries(RD, MorallyVirtual, Offset); if (Path) OverrideMethods(Path, MorallyVirtual, Offset); |