Skip to content

Commit 6200a3b

Browse files
committed
[region-isolation] Fix a thinko.
project_box's type is not a box type... it is the type contained in the box.
1 parent b2f1c41 commit 6200a3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,7 @@ class PartitionOpTranslator {
12891289
continue;
12901290
}
12911291
if (auto *pbi = dyn_cast<ProjectBoxInst>(val)) {
1292-
if (isNonSendableType(
1293-
pbi->getType().getSILBoxFieldType(function))) {
1292+
if (isNonSendableType(pbi->getType())) {
12941293
auto trackVal = getTrackableValue(val, true);
12951294
(void)trackVal;
12961295
continue;

0 commit comments

Comments
 (0)