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.
emitFunctionDefinition
1 parent daa8d5b commit 99cfbf7Copy full SHA for 99cfbf7
lib/SILGen/SILGen.cpp
@@ -1439,12 +1439,11 @@ void SILGenModule::emitConstructor(ConstructorDecl *decl) {
1439
(decl->isMemberwiseInitializer() ||
1440
decl == SD->getDefaultInitializer())) {
1441
#ifndef NDEBUG
1442
- auto *wrapped = SD->getDeclContext()->getSelfNominalTypeDecl();
1443
- assert(wrapped->hasTypeWrapper());
+ auto *wrapped = SD->getDeclContext()->getSelfNominalTypeDecl();
+ assert(wrapped->hasTypeWrapper());
1444
#endif
1445
1446
- emitOrDelayFunction(*this, constant,
1447
- /*forceEmission=*/true);
+ emitFunctionDefinition(constant, getFunction(constant, ForDefinition));
1448
return;
1449
}
1450
0 commit comments