forked from OSchip/llvm-project
parent
faba9fe5e4
commit
476e2dfe19
|
@ -509,15 +509,7 @@ public:
|
||||||
if (ForVirtualBase)
|
if (ForVirtualBase)
|
||||||
extra = offsets.size();
|
extra = offsets.size();
|
||||||
|
|
||||||
// vtables are composed from the chain of primaries.
|
Primaries(RD, MorallyVirtual, Offset);
|
||||||
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);
|
|
||||||
|
|
||||||
if (Path)
|
if (Path)
|
||||||
OverrideMethods(Path, MorallyVirtual, Offset);
|
OverrideMethods(Path, MorallyVirtual, Offset);
|
||||||
|
|
Loading…
Reference in New Issue