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.
2 parents 56debbc + c9ef553 commit ffa5898Copy full SHA for ffa5898
lib/IRGen/GenDecl.cpp
@@ -959,9 +959,9 @@ void IRGenerator::emitEagerClassInitialization() {
959
llvm::FunctionType::get(IGM->VoidTy, false),
960
llvm::GlobalValue::PrivateLinkage,
961
"_swift_eager_class_initialization");
962
+ IGM->Module.getFunctionList().push_back(RegisterFn);
963
IRGenFunction RegisterIGF(*IGM, RegisterFn);
964
RegisterFn->setAttributes(IGM->constructInitialAttributes());
- IGM->Module.getFunctionList().push_back(RegisterFn);
965
RegisterFn->setCallingConv(IGM->DefaultCC);
966
967
for (ClassDecl *CD : ClassesForEagerInitialization) {
0 commit comments