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 b85988d commit bbd3696Copy full SHA for bbd3696
lib/IRGen/LoadableByAddress.cpp
@@ -3799,6 +3799,15 @@ class AssignAddressToDef : SILInstructionVisitor<AssignAddressToDef> {
3799
assignment.mapValueToAddress(origValue, newAddr);
3800
assignment.markForDeletion(bc);
3801
}
3802
+
3803
+ void visitUncheckedBitwiseCastInst(UncheckedBitwiseCastInst *bc) {
3804
+ auto builder = assignment.getBuilder(bc->getIterator());
3805
+ auto opdAddr = assignment.getAddressForValue(bc->getOperand());
3806
+ auto newAddr = builder.createUncheckedAddrCast(
3807
+ bc->getLoc(), opdAddr, bc->getType().getAddressType());
3808
+ assignment.mapValueToAddress(origValue, newAddr);
3809
+ assignment.markForDeletion(bc);
3810
+ }
3811
};
3812
} // namespace
3813
0 commit comments