@@ -147,6 +147,8 @@ BridgedLifetimeDependenceInfo::BridgedLifetimeDependenceInfo(swift::LifetimeDepe
147147 : inheritLifetimeParamIndices(info.getInheritIndices()),
148148 scopeLifetimeParamIndices(info.getScopeIndices()),
149149 addressableParamIndices(info.getAddressableIndices()),
150+ conditionallyAddressableParamIndices(
151+ info.getConditionallyAddressableIndices()),
150152 targetIndex(info.getTargetIndex()), immortal(info.isImmortal()) {}
151153
152154SwiftInt BridgedLifetimeDependenceInfoArray::count () const {
@@ -177,6 +179,12 @@ bool BridgedLifetimeDependenceInfo::checkAddressable(SwiftInt index) const {
177179 return addressableParamIndices && addressableParamIndices->contains (index);
178180}
179181
182+ bool BridgedLifetimeDependenceInfo::
183+ checkConditionallyAddressable (SwiftInt index) const {
184+ return conditionallyAddressableParamIndices
185+ && conditionallyAddressableParamIndices->contains (index);
186+ }
187+
180188SwiftInt BridgedLifetimeDependenceInfo::getTargetIndex () const {
181189 return targetIndex;
182190}
@@ -384,6 +392,10 @@ bool BridgedType::isMarkedAsImmortal() const {
384392 return unbridged ().isMarkedAsImmortal ();
385393}
386394
395+ bool BridgedType::isAddressableForDeps (BridgedFunction f) const {
396+ return unbridged ().isAddressableForDeps (*f.getFunction ());
397+ }
398+
387399SwiftInt BridgedType::getCaseIdxOfEnumType (BridgedStringRef name) const {
388400 return unbridged ().getCaseIdxOfEnumType (name.unbridged ());
389401}
0 commit comments