File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,18 @@ class SILBuilder {
172
172
// / Build instructions before the given insertion point, inheriting the debug
173
173
// / location.
174
174
// /
175
- // / Clients should prefer this constructor .
175
+ // / SILBuilderContext must outlive this SILBuilder instance .
176
176
SILBuilder (SILInstruction *I, const SILDebugScope *DS, SILBuilderContext &C)
177
177
: TempContext(C.getModule()), C(C), F(I->getFunction ()) {
178
178
assert (DS && " instruction has no debug scope" );
179
179
setCurrentDebugScope (DS);
180
180
setInsertionPoint (I);
181
181
}
182
182
183
+ // / Build instructions before the given insertion point, inheriting the debug
184
+ // / location.
185
+ // /
186
+ // / SILBuilderContext must outlive this SILBuilder instance.
183
187
SILBuilder (SILBasicBlock *BB, const SILDebugScope *DS, SILBuilderContext &C)
184
188
: TempContext(C.getModule()), C(C), F(BB->getParent ()) {
185
189
assert (DS && " block has no debug scope" );
You can’t perform that action at this time.
0 commit comments