File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5807,8 +5807,8 @@ class AsyncConverter : private SourceEntityWalker {
5807
5807
5808
5808
// / Prints a tuple of elements, or a lone single element if only one is
5809
5809
// / present, using the provided printing function.
5810
- template <typename T , typename PrintFn>
5811
- void addTupleOf (ArrayRef<T> Elements, llvm::raw_ostream &OS,
5810
+ template <typename Container , typename PrintFn>
5811
+ void addTupleOf (const Container & Elements, llvm::raw_ostream &OS,
5812
5812
PrintFn PrintElt) {
5813
5813
if (Elements.size () == 1 ) {
5814
5814
PrintElt (Elements[0 ]);
@@ -5909,8 +5909,7 @@ class AsyncConverter : private SourceEntityWalker {
5909
5909
// cont.resume(returning: (res1, res2, ...))
5910
5910
OS << ContName << tok::period << " resume" << tok::l_paren;
5911
5911
OS << " returning" << tok::colon << " " ;
5912
- addTupleOf (llvm::makeArrayRef (SuccessParamNames), OS,
5913
- [&](auto Ref) { OS << Ref; });
5912
+ addTupleOf (SuccessParamNames, OS, [&](auto Ref) { OS << Ref; });
5914
5913
OS << tok::r_paren << " \n " ;
5915
5914
break ;
5916
5915
}
You can’t perform that action at this time.
0 commit comments