File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
SwiftCompilerSources/Sources/Optimizer/Utilities
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -540,6 +540,10 @@ extension Function {
540
540
}
541
541
return nil
542
542
}
543
+
544
+ var mayBindDynamicSelf : Bool {
545
+ self . bridged. mayBindDynamicSelf ( )
546
+ }
543
547
}
544
548
545
549
extension FullApplySite {
Original file line number Diff line number Diff line change @@ -560,6 +560,7 @@ struct BridgedFunction {
560
560
BRIDGED_INLINE bool hasSemanticsAttr (BridgedStringRef attrName) const ;
561
561
BRIDGED_INLINE bool hasUnsafeNonEscapableResult () const ;
562
562
BRIDGED_INLINE bool hasResultDependsOnSelf () const ;
563
+ bool mayBindDynamicSelf () const ;
563
564
BRIDGED_INLINE EffectsKind getEffectAttribute () const ;
564
565
BRIDGED_INLINE PerformanceConstraints getPerformanceConstraints () const ;
565
566
BRIDGED_INLINE InlineStrategy getInlineStrategy () const ;
Original file line number Diff line number Diff line change @@ -1540,6 +1540,13 @@ void SwiftPassInvocation::endVerifyFunction() {
1540
1540
1541
1541
SwiftPassInvocation::~SwiftPassInvocation () {}
1542
1542
1543
+ // ===----------------------------------------------------------------------===//
1544
+ // SIL Bridging
1545
+ // ===----------------------------------------------------------------------===//
1546
+ bool BridgedFunction::mayBindDynamicSelf () const {
1547
+ return swift::mayBindDynamicSelf (getFunction ());
1548
+ }
1549
+
1543
1550
// ===----------------------------------------------------------------------===//
1544
1551
// OptimizerBridging
1545
1552
// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments