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

@@ -2509,6 +2509,11 @@ public:
verifyOpenedArchetype(CI, CI->getType().getSwiftRValueType());
}
void checkUnconditionalCheckedCastOpaqueInst(
UnconditionalCheckedCastOpaqueInst *CI) {
verifyOpenedArchetype(CI, CI->getType().getSwiftRValueType());
}
/// Verify if a given type is or contains an opened archetype or dynamic self.
/// If this is the case, verify that the provided instruction has a type
/// dependent operand for it.