We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d7b6f commit f9e9853Copy full SHA for f9e9853
lib/SILOptimizer/Mandatory/AddressLowering.cpp
@@ -1673,7 +1673,11 @@ SILValue AddressMaterialization::materializeDefProjection(SILValue origValue) {
1673
llvm_unreachable("Unexpected projection from def.");
1674
1675
case ValueKind::CopyValueInst:
1676
- assert(isStoreCopy(origValue));
+ // 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));
1681
return pass.getMaterializedAddress(
1682
cast<CopyValueInst>(origValue)->getOperand());
1683
0 commit comments