Skip to content

Commit 7529346

Browse files
committed
[Profiler] Remove unnecessary createProfiler call
We never end up creating the profiler for a backing initializer from projected value, as it has no user-written code.
1 parent d1e2ac1 commit 7529346

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/SILGen/SILGen.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,6 @@ void SILGenModule::emitFunctionDefinition(SILDeclRef constant, SILFunction *f) {
10001000
auto *init = constant.getInitializationExpr();
10011001
assert(init);
10021002

1003-
f->createProfiler(init, constant);
10041003
auto varDC = var->getInnermostDeclContext();
10051004
SILGenFunction SGF(*this, *f, varDC);
10061005
SGF.emitGeneratorFunction(constant, init);

0 commit comments

Comments
 (0)