@@ -51,7 +51,6 @@ class CoroCloner {
5151 Function *NewF = nullptr ;
5252 Value *NewFramePtr = nullptr ;
5353
54-
5554 // / The active suspend instruction; meaningful only for continuation and async
5655 // / ABIs.
5756 AnyCoroSuspendInst *ActiveSuspend = nullptr ;
@@ -62,7 +61,8 @@ class CoroCloner {
6261 TargetTransformInfo &TTI)
6362 : OrigF(OrigF), Suffix(Suffix), Shape(Shape),
6463 FKind (Shape.ABI == coro::ABI::Async ? Kind::Async : Kind::Continuation),
65- Builder(OrigF.getContext()), TTI(TTI), NewF(NewF), ActiveSuspend(ActiveSuspend) {
64+ Builder(OrigF.getContext()), TTI(TTI), NewF(NewF),
65+ ActiveSuspend(ActiveSuspend) {
6666 assert (Shape.ABI == coro::ABI::Retcon ||
6767 Shape.ABI == coro::ABI::RetconOnce || Shape.ABI == coro::ABI::Async);
6868 assert (NewF && " need existing function for continuation" );
@@ -71,11 +71,11 @@ class CoroCloner {
7171
7272public:
7373 CoroCloner (Function &OrigF, const Twine &Suffix, coro::Shape &Shape,
74- Kind FKind, TargetTransformInfo &TTI) :
75- OrigF(OrigF), Suffix(Suffix), Shape(Shape), FKind(FKind), Builder(OrigF.getContext()), TTI(TTI) {
76- }
74+ Kind FKind, TargetTransformInfo &TTI)
75+ : OrigF(OrigF), Suffix(Suffix), Shape(Shape), FKind(FKind),
76+ Builder(OrigF.getContext()), TTI(TTI) { }
7777
78- virtual ~CoroCloner () { }
78+ virtual ~CoroCloner () {}
7979
8080 // / Create a clone for a continuation lowering.
8181 static Function *createClone (Function &OrigF, const Twine &Suffix,
@@ -122,13 +122,12 @@ class CoroCloner {
122122 void handleFinalSuspend ();
123123};
124124
125-
126125class CoroSwitchCloner : public CoroCloner {
127126protected:
128127 // / Create a cloner for a switch lowering.
129128 CoroSwitchCloner (Function &OrigF, const Twine &Suffix, coro::Shape &Shape,
130129 Kind FKind, TargetTransformInfo &TTI)
131- : CoroCloner(OrigF, Suffix, Shape, FKind, TTI) { }
130+ : CoroCloner(OrigF, Suffix, Shape, FKind, TTI) {}
132131
133132 void create () override ;
134133
0 commit comments