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 @@ -2355,6 +2355,9 @@ void IRGenSILFunction::emitSILFunction() {
2355
2355
if (IGM.DebugInfo )
2356
2356
IGM.DebugInfo ->emitFunction (*CurSILFn, CurFn);
2357
2357
2358
+ if (!CurSILFn->useStackForPackMetadata ())
2359
+ packMetadataStackPromotionDisabled = true ;
2360
+
2358
2361
// Map the entry bb.
2359
2362
LoweredBBs[&*CurSILFn->begin ()] = LoweredBB (&CurFn->back (), {});
2360
2363
// Create LLVM basic blocks for the other bbs.
You can’t perform that action at this time.
0 commit comments