@@ -51,7 +51,6 @@ class CoroCloner {
51
51
Function *NewF = nullptr ;
52
52
Value *NewFramePtr = nullptr ;
53
53
54
-
55
54
// / The active suspend instruction; meaningful only for continuation and async
56
55
// / ABIs.
57
56
AnyCoroSuspendInst *ActiveSuspend = nullptr ;
@@ -62,7 +61,8 @@ class CoroCloner {
62
61
TargetTransformInfo &TTI)
63
62
: OrigF(OrigF), Suffix(Suffix), Shape(Shape),
64
63
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) {
66
66
assert (Shape.ABI == coro::ABI::Retcon ||
67
67
Shape.ABI == coro::ABI::RetconOnce || Shape.ABI == coro::ABI::Async);
68
68
assert (NewF && " need existing function for continuation" );
@@ -71,11 +71,11 @@ class CoroCloner {
71
71
72
72
public:
73
73
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) { }
77
77
78
- virtual ~CoroCloner () { }
78
+ virtual ~CoroCloner () {}
79
79
80
80
// / Create a clone for a continuation lowering.
81
81
static Function *createClone (Function &OrigF, const Twine &Suffix,
@@ -122,13 +122,12 @@ class CoroCloner {
122
122
void handleFinalSuspend ();
123
123
};
124
124
125
-
126
125
class CoroSwitchCloner : public CoroCloner {
127
126
protected:
128
127
// / Create a cloner for a switch lowering.
129
128
CoroSwitchCloner (Function &OrigF, const Twine &Suffix, coro::Shape &Shape,
130
129
Kind FKind, TargetTransformInfo &TTI)
131
- : CoroCloner(OrigF, Suffix, Shape, FKind, TTI) { }
130
+ : CoroCloner(OrigF, Suffix, Shape, FKind, TTI) {}
132
131
133
132
void create () override ;
134
133
0 commit comments