TemplateTypeParmDecl::hasTypeConstraint is not a safe guard for
checking TemplateTypeParmDecl::getTypeConstraint() result is null.
in somecases (e.g. implicit deduction guide templates synthesized from the
constructor), hasTypeConstraint returns true, and getTypeConstraint
returns a nullptr.