Skip to content

Commit

Permalink
UncheckedAddrCast does not preserve RC identity.
Browse files Browse the repository at this point in the history
UncheckedRefCastAddr does.

This cleans up the white-list used by ARC
optimization to be a bit more conservative.

I wasn't able to observe a change in behavior.
  • Loading branch information
atrick committed Nov 12, 2015
1 parent 59882ff commit 2318be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SIL/SILValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static bool isRCIdentityPreservingCast(ValueKind Kind) {
switch (Kind) {
case ValueKind::UpcastInst:
case ValueKind::UncheckedRefCastInst:
case ValueKind::UncheckedAddrCastInst:
case ValueKind::UncheckedRefCastAddrInst:
case ValueKind::UnconditionalCheckedCastInst:
case ValueKind::RefToBridgeObjectInst:
case ValueKind::BridgeObjectToRefInst:
Expand Down

0 comments on commit 2318be3

Please sign in to comment.