Skip to content

Commit 9a34039

Browse files
committed
SILGen: remove an unused field in GenGlobalAccessors
NFC
1 parent 12e6719 commit 9a34039

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/SILGen/SILGenGlobalVariable.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ struct GenGlobalAccessors : public PatternVisitor<GenGlobalAccessors>
152152
/// The function containing the initialization code.
153153
SILFunction *OnceFunc;
154154

155-
/// A reference to the Builtin.once declaration.
156-
FuncDecl *BuiltinOnceDecl;
157-
158155
GenGlobalAccessors(SILGenModule &SGM,
159156
SILGlobalVariable *OnceToken,
160157
SILFunction *OnceFunc)
@@ -167,8 +164,6 @@ struct GenGlobalAccessors : public PatternVisitor<GenGlobalAccessors>
167164
NLKind::QualifiedLookup, found);
168165

169166
assert(found.size() == 1 && "didn't find Builtin.once?!");
170-
171-
BuiltinOnceDecl = cast<FuncDecl>(found[0]);
172167
}
173168

174169
// Walk through non-binding patterns.

0 commit comments

Comments
 (0)