mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen and basic optimizer support for coroutines.
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
using namespace swift;
|
||||
|
||||
bool SILInliner::canInlineFunction(FullApplySite AI) {
|
||||
// For now, we cannot inline begin_apply at all.
|
||||
if (isa<BeginApplyInst>(AI))
|
||||
return false;
|
||||
|
||||
return AI.getFunction() != &Original;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user