File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,9 @@ class SILBuilder {
268
268
// ===--------------------------------------------------------------------===//
269
269
270
270
bool hasValidInsertionPoint () const { return BB != nullptr ; }
271
- SILBasicBlock *getInsertionBB () { return BB; }
272
- SILBasicBlock::iterator getInsertionPoint () { return InsertPt; }
271
+ SILBasicBlock *getInsertionBB () const { return BB; }
272
+ SILBasicBlock::iterator getInsertionPoint () const { return InsertPt; }
273
+ SILLocation getInsertionPointLoc () const { return InsertPt->getLoc (); }
273
274
274
275
// / insertingAtEndOfBlock - Return true if the insertion point is at the end
275
276
// / of the current basic block. False if we're inserting before an existing
@@ -320,8 +321,6 @@ class SILBuilder {
320
321
setInsertionPoint (&*BBIter);
321
322
}
322
323
323
- SILBasicBlock *getInsertionPoint () const { return BB; }
324
-
325
324
// ===--------------------------------------------------------------------===//
326
325
// Instruction Tracking
327
326
// ===--------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments