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.
Repository:
rL LLVM
https://reviews.llvm.org/D33812
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits