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 fdc6c4c commit 1c1d95aCopy full SHA for 1c1d95a
lib/IRGen/IRGenSIL.cpp
@@ -2599,7 +2599,8 @@ void IRGenSILFunction::emitSILFunction() {
2599
LinkEntity::forSILFunction(CurSILFn),
2600
getAsyncContextLayout(*this).getSize());
2601
2602
- if (IGM.getOptions().EmitAsyncFramePushPopMetadata) {
+ if (IGM.getOptions().EmitAsyncFramePushPopMetadata &&
2603
+ IGM.TargetInfo.OutputObjectFormat == llvm::Triple::MachO) {
2604
CurFn->addFnAttr("async_entry");
2605
CurFn->addFnAttr(llvm::Attribute::NoInline);
2606
}
0 commit comments