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.
2 parents b1e3bcb + 6dc41d8 commit 2445018Copy full SHA for 2445018
lib/SIL/SILInstructions.cpp
@@ -1762,6 +1762,8 @@ OpenExistentialAddrInst::OpenExistentialAddrInst(
1762
OpenExistentialRefInst::OpenExistentialRefInst(
1763
SILDebugLocation DebugLoc, SILValue Operand, SILType Ty)
1764
: UnaryInstructionBase(DebugLoc, Operand, Ty) {
1765
+ assert(Operand->getType().isObject() && "Operand must be an object.");
1766
+ assert(Ty.isObject() && "Result type must be an object type.");
1767
}
1768
1769
OpenExistentialMetatypeInst::OpenExistentialMetatypeInst(
0 commit comments