r178548 - [ms-cxxabi] Move MS inheritance model calculation into MemberPointerType

João Matos ripzonetriton at gmail.com
Wed Apr 3 15:44:25 PDT 2013


On Tue, Apr 2, 2013 at 5:23 PM, Reid Kleckner <reid at kleckner.net> wrote:

> +MSInheritanceModel CXXRecordDecl::getMSInheritanceModel() const {
> +  Attr *IA = this->getAttr<MSInheritanceAttr>();
> +  if (IA)
> +    return MSInheritanceAttrToModel(IA->getKind());
> +  // If there was no explicit attribute, the record must be defined
> already, and
> +  // we can figure out the inheritance model from its other properties.
> +  if (this->getNumVBases() > 0)
> +    return IHM_Virtual;


I am getting an assert here. Specifically, getNumVBases() asserts in data()
because the record has no definition data. According to the comment it
should be defined when reaching that line.

Any guesses why this is happening?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130403/1f9be504/attachment.html>


More information about the cfe-commits mailing list