File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3359,6 +3359,8 @@ class AnyFunctionType : public TypeBase {
3359
3359
// / replaced.
3360
3360
AnyFunctionType *withExtInfo (ExtInfo info) const ;
3361
3361
3362
+ static bool containsPackExpansionType (ArrayRef<Param> params);
3363
+
3362
3364
static void printParams (ArrayRef<Param> Params, raw_ostream &OS,
3363
3365
const PrintOptions &PO = PrintOptions ());
3364
3366
static void printParams (ArrayRef<Param> Params, ASTPrinter &Printer,
Original file line number Diff line number Diff line change @@ -4282,6 +4282,15 @@ bool AnyFunctionType::hasSameExtInfoAs(const AnyFunctionType *otherFn) {
4282
4282
return getExtInfo ().isEqualTo (otherFn->getExtInfo (), useClangTypes (this ));
4283
4283
}
4284
4284
4285
+ bool AnyFunctionType::containsPackExpansionType (ArrayRef<Param> params) {
4286
+ for (auto param : params) {
4287
+ if (param.getPlainType ()->is <PackExpansionType>())
4288
+ return true ;
4289
+ }
4290
+
4291
+ return false ;
4292
+ }
4293
+
4285
4294
ClangTypeInfo SILFunctionType::getClangTypeInfo () const {
4286
4295
if (!Bits.SILFunctionType .HasClangTypeInfo )
4287
4296
return ClangTypeInfo ();
You can’t perform that action at this time.
0 commit comments