Skip to content

Commit 972c22f

Browse files
committed
[MoveOnlyAddressChecker] Handle open_exi_addr.
It's a pass-through for FSPL's purposes.
1 parent 8c230de commit 972c22f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/SIL/Utils/FieldSensitivePrunedLiveness.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ SubElementOffset::computeForAddress(SILValue projectionDerivedFromRoot,
158158
continue;
159159
}
160160

161+
if (auto *oea =
162+
dyn_cast<OpenExistentialAddrInst>(projectionDerivedFromRoot)) {
163+
projectionDerivedFromRoot = oea->getOperand();
164+
continue;
165+
}
166+
161167
if (auto *teai =
162168
dyn_cast<TupleElementAddrInst>(projectionDerivedFromRoot)) {
163169
SILType tupleType = teai->getOperand()->getType();

0 commit comments

Comments
 (0)