File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,16 @@ class SILBuilder {
375
375
// / continuation block.
376
376
SILBasicBlock *splitBlockForFallthrough ();
377
377
378
+ // / Convenience for creating a fall-through basic block on-the-fly without
379
+ // / affecting the insertion point.
380
+ SILBasicBlock *createFallthroughBlock (SILLocation loc,
381
+ SILBasicBlock *targetBB) {
382
+ auto *newBB = F->createBasicBlock ();
383
+ SILBuilder (newBB, this ->getCurrentDebugScope (), this ->getBuilderContext ())
384
+ .createBranch (loc, targetBB);
385
+ return newBB;
386
+ }
387
+
378
388
// ===--------------------------------------------------------------------===//
379
389
// SILInstruction Creation Methods
380
390
// ===--------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments