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