mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add support for unconditional checked cast instruction for opaque value types + SILGen support for it
This commit is contained in:
@@ -797,6 +797,13 @@ public:
|
||||
targetType));
|
||||
}
|
||||
|
||||
UnconditionalCheckedCastOpaqueInst *
|
||||
createUnconditionalCheckedCastOpaque(SILLocation Loc, SILValue op,
|
||||
SILType destTy) {
|
||||
return insert(UnconditionalCheckedCastOpaqueInst::create(
|
||||
getSILDebugLocation(Loc), op, destTy, F, OpenedArchetypes));
|
||||
}
|
||||
|
||||
RetainValueInst *createRetainValue(SILLocation Loc, SILValue operand,
|
||||
Atomicity atomicity) {
|
||||
assert(isParsing || F.hasUnqualifiedOwnership());
|
||||
|
||||
Reference in New Issue
Block a user