File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -5028,6 +5028,7 @@ void IRGenSILFunction::visitCondBranchInst(swift::CondBranchInst *i) {
5028
5028
}
5029
5029
5030
5030
void IRGenSILFunction::visitRetainValueInst (swift::RetainValueInst *i) {
5031
+ assert (!i->getOperand ()->getType ().isMoveOnly ());
5031
5032
Explosion in = getLoweredExplosion (i->getOperand ());
5032
5033
Explosion out;
5033
5034
cast<LoadableTypeInfo>(getTypeInfo (i->getOperand ()->getType ()))
@@ -5038,6 +5039,7 @@ void IRGenSILFunction::visitRetainValueInst(swift::RetainValueInst *i) {
5038
5039
5039
5040
void IRGenSILFunction::visitRetainValueAddrInst (swift::RetainValueAddrInst *i) {
5040
5041
SILValue operandValue = i->getOperand ();
5042
+ assert (!operandValue->getType ().isMoveOnly ());
5041
5043
Address addr = getLoweredAddress (operandValue);
5042
5044
SILType addrTy = operandValue->getType ();
5043
5045
SILType objectT = addrTy.getObjectType ();
You can’t perform that action at this time.
0 commit comments