Skip to content

Commit f9e9853

Browse files
committed
[AddressLowering] Removed restrictive assert.
1 parent 47d7b6f commit f9e9853

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,11 @@ SILValue AddressMaterialization::materializeDefProjection(SILValue origValue) {
16731673
llvm_unreachable("Unexpected projection from def.");
16741674

16751675
case ValueKind::CopyValueInst:
1676-
assert(isStoreCopy(origValue));
1676+
// This must be a store-copy instruction. We can't assert that it is at
1677+
// this point, however, because we're in the midst of rewriting and the
1678+
// predicate relies on PrunedLiveness.
1679+
//
1680+
// assert(isStoreCopy(origValue));
16771681
return pass.getMaterializedAddress(
16781682
cast<CopyValueInst>(origValue)->getOperand());
16791683

0 commit comments

Comments
 (0)