Add support for unconditional checked cast instruction for opaque value types + SILGen support for it

This commit is contained in:
Joe Shajrawi
2017-02-22 16:17:00 -08:00
parent 20bdedf17e
commit ec1e3ee20e
20 changed files with 158 additions and 15 deletions

View File

@@ -1216,7 +1216,12 @@ public:
<< " to " << CI->getTargetType() << " in "
<< getIDAndType(CI->getDest());
}
void visitUnconditionalCheckedCastOpaqueInst(
UnconditionalCheckedCastOpaqueInst *CI) {
*this << getIDAndType(CI->getOperand()) << " to " << CI->getType();
}
void visitCheckedCastAddrBranchInst(CheckedCastAddrBranchInst *CI) {
*this << getCastConsumptionKindName(CI->getConsumptionKind()) << ' '
<< CI->getSourceType() << " in " << getIDAndType(CI->getSrc())