mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Revert "Safely implement strict TBAA rules.""
We believe the failure now may be in the setup of the test harness. Re-applying this change, since the tests passed in our other configurations.
This commit is contained in:
@@ -98,8 +98,9 @@ SILValue SILValue::stripCasts() {
|
||||
V = stripSinglePredecessorArgs(V);
|
||||
|
||||
auto K = V->getKind();
|
||||
if (isRCIdentityPreservingCast(K) ||
|
||||
K == ValueKind::UncheckedTrivialBitCastInst) {
|
||||
if (isRCIdentityPreservingCast(K)
|
||||
|| K == ValueKind::UncheckedTrivialBitCastInst
|
||||
|| K == ValueKind::MarkDependenceInst) {
|
||||
V = cast<SILInstruction>(V.getDef())->getOperand(0);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user