File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -7098,16 +7098,6 @@ inline bool TypeBase::isTypeParameter() {
7098
7098
return t->is <GenericTypeParamType>();
7099
7099
}
7100
7100
7101
- inline bool TypeBase::isParameterPack () {
7102
- Type t (this );
7103
-
7104
- while (auto *memberTy = t->getAs <DependentMemberType>())
7105
- t = memberTy->getBase ();
7106
-
7107
- return t->is <GenericTypeParamType>() &&
7108
- t->castTo <GenericTypeParamType>()->isParameterPack ();
7109
- }
7110
-
7111
7101
// TODO: This will become redundant once InOutType is removed.
7112
7102
inline bool TypeBase::isMaterializable () {
7113
7103
return !(hasLValueType () || is<InOutType>());
Original file line number Diff line number Diff line change @@ -90,6 +90,16 @@ bool GenericTypeParamType::isParameterPack() const {
90
90
GenericTypeParamType::TYPE_SEQUENCE_BIT;
91
91
}
92
92
93
+ bool TypeBase::isParameterPack () {
94
+ Type t (this );
95
+
96
+ while (auto *memberTy = t->getAs <DependentMemberType>())
97
+ t = memberTy->getBase ();
98
+
99
+ return t->is <GenericTypeParamType>() &&
100
+ t->castTo <GenericTypeParamType>()->isParameterPack ();
101
+ }
102
+
93
103
PackType *TypeBase::getPackSubstitutionAsPackType () {
94
104
if (auto pack = getAs<PackType>()) {
95
105
return pack;
You can’t perform that action at this time.
0 commit comments