[Lldb-commits] [PATCH] D33812: [TypeSystem] Handle Clang AttributedTypes

Sean Callanan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 1 18:10:34 PDT 2017

spyffe added a comment.

`ModifiedType` gets assigned during construction and `getModifiedType()` is just an accessor, so if that is `nullptr` something very bad is happening.  We should not expect that except in case of a parser bug of some sort.

`AttributedType` checks that a `Type*` is an `AttributedType` in the following way (Type.h):

  static bool classof(const Type *T) {
    return T->getTypeClass() == Attributed;

So our use of the type class is canonical.



More information about the lldb-commits mailing list