RefToBridgeObjectInst and BridgeObjectToRefInst are rc identity preserving

rdar://19006443

Swift SVN r23411
This commit is contained in:
Arnold Schwaighofer
2014-11-18 21:23:07 +00:00
parent 20f75c7f67
commit 08015deced
3 changed files with 24 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ static bool isRCIdentityPreservingCast(ValueKind Kind) {
case ValueKind::UncheckedRefBitCastInst:
case ValueKind::InitExistentialRefInst:
case ValueKind::OpenExistentialRefInst:
case ValueKind::RefToBridgeObjectInst:
case ValueKind::BridgeObjectToRefInst:
return true;
default:
return false;