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 2a7714a commit baca235Copy full SHA for baca235
lib/SILOptimizer/Analysis/RegionAnalysis.cpp
@@ -3336,12 +3336,8 @@ TrackableValue RegionAnalysisValueMap::getTrackableValue(
3336
3337
auto storage = AccessStorageWithBase::compute(svi->getOperand(0));
3338
if (storage.storage) {
3339
- if (auto *reai = dyn_cast<RefElementAddrInst>(storage.base)) {
3340
- auto *nomDecl = reai->getOperand()
3341
- ->getType()
3342
- .getNominalOrBoundGenericNominal();
3343
- iter.first->getSecond().mergeIsolationRegionInfo(
3344
- SILIsolationInfo::getActorIsolated(reai->getOperand(), nomDecl));
+ if (auto isolation = SILIsolationInfo::get(storage.base)) {
+ iter.first->getSecond().mergeIsolationRegionInfo(isolation);
3345
}
3346
3347
0 commit comments