Skip to content

Commit a925142

Browse files
committed
[DI] Leave a comment about origins of _storage variable
1 parent 113c4fb commit a925142

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3840,6 +3840,11 @@ static MarkUninitializedInst *findLocalTypeWrapperStorageVar(SILFunction &F) {
38403840
if (!BB)
38413841
return nullptr;
38423842

3843+
// The variable in question - `_storage` is injected during Sema
3844+
// as a first declaration statement in the body of a user-defined
3845+
// designated initializer of a type wrapped type.
3846+
//
3847+
// See \c TypeCheckFunctionBodyRequest for more details.
38433848
for (auto &I : *BB) {
38443849
SILInstruction *Inst = &I;
38453850
auto *MUI = dyn_cast<MarkUninitializedInst>(Inst);

0 commit comments

Comments
 (0)