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 3c62c74 commit a63078fCopy full SHA for a63078f
lib/IRGen/LoadableByAddress.cpp
@@ -3773,6 +3773,15 @@ class AssignAddressToDef : SILInstructionVisitor<AssignAddressToDef> {
3773
assignment.mapValueToAddress(origValue, newAddr);
3774
assignment.markForDeletion(bc);
3775
}
3776
+
3777
+ void visitUncheckedBitwiseCastInst(UncheckedBitwiseCastInst *bc) {
3778
+ auto builder = assignment.getBuilder(bc->getIterator());
3779
+ auto opdAddr = assignment.getAddressForValue(bc->getOperand());
3780
+ auto newAddr = builder.createUncheckedAddrCast(
3781
+ bc->getLoc(), opdAddr, bc->getType().getAddressType());
3782
+ assignment.mapValueToAddress(origValue, newAddr);
3783
+ assignment.markForDeletion(bc);
3784
+ }
3785
};
3786
} // namespace
3787
0 commit comments