File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -201,10 +201,12 @@ class IRGenFunction {
201
201
llvm::Value *AsyncCoroutineCurrentResume = nullptr ;
202
202
llvm::Value *AsyncCoroutineCurrentContinuationContext = nullptr ;
203
203
204
+ protected:
204
205
// Whether pack metadata stack promotion is disabled for this function in
205
206
// particular.
206
207
bool packMetadataStackPromotionDisabled = false ;
207
208
209
+ private:
208
210
Address asyncContextLocation;
209
211
210
212
// / The unique block that calls @llvm.coro.end.
Original file line number Diff line number Diff line change @@ -2359,6 +2359,9 @@ void IRGenSILFunction::emitSILFunction() {
2359
2359
if (IGM.DebugInfo )
2360
2360
IGM.DebugInfo ->emitFunction (*CurSILFn, CurFn);
2361
2361
2362
+ if (!CurSILFn->useStackForPackMetadata ())
2363
+ packMetadataStackPromotionDisabled = true ;
2364
+
2362
2365
// Map the entry bb.
2363
2366
LoweredBBs[&*CurSILFn->begin ()] = LoweredBB (&CurFn->back (), {});
2364
2367
// Create LLVM basic blocks for the other bbs.
You can’t perform that action at this time.
0 commit comments