rsmith added a comment.
Your FIXME is a concern. I think it would be preferable for this function to
require as a precondition that the type is complete. If the only call where
that isn't true is the call from `ItaniumCXXABI::usesThreadWrapperFunction`, it
seems reasonable to perform a complete
jyknight created this revision.
jyknight added a reviewer: rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
ItaniumCXXABI::usesThreadWrapperFunction calls
VarDecl::needsDestruction, which calls QualType::isDestructedType,
which checks CXXRecordDecl::hasTrivialDestruct