We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f9acc commit f73e6c7Copy full SHA for f73e6c7
lib/SILGen/SILGenBuilder.h
@@ -63,6 +63,14 @@ class SILGenBuilder : public SILBuilder {
63
SILBasicBlock::iterator insertInst)
64
: SILGenBuilder(SGF, &*insertBB, insertInst) {}
65
66
+ // Create a new builder, inheriting the given builder's context and debug
67
+ // scope.
68
+ SILGenBuilder(SILGenBuilder &builder, SILBasicBlock *insertBB)
69
+ : SILBuilder(insertBB, builder.getCurrentDebugScope(),
70
+ builder.getBuilderContext()),
71
+ SGF(builder.SGF)
72
+ {}
73
+
74
SILGenModule &getSILGenModule() const;
75
SILGenFunction &getSILGenFunction() const { return SGF; }
76
0 commit comments