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 @@ -5109,6 +5109,7 @@ void IRGenSILFunction::visitCondBranchInst(swift::CondBranchInst *i) {
5109
5109
}
5110
5110
5111
5111
void IRGenSILFunction::visitRetainValueInst (swift::RetainValueInst *i) {
5112
+ assert (!i->getOperand ()->getType ().isMoveOnly ());
5112
5113
Explosion in = getLoweredExplosion (i->getOperand ());
5113
5114
Explosion out;
5114
5115
cast<LoadableTypeInfo>(getTypeInfo (i->getOperand ()->getType ()))
@@ -5119,6 +5120,7 @@ void IRGenSILFunction::visitRetainValueInst(swift::RetainValueInst *i) {
5119
5120
5120
5121
void IRGenSILFunction::visitRetainValueAddrInst (swift::RetainValueAddrInst *i) {
5121
5122
SILValue operandValue = i->getOperand ();
5123
+ assert (!operandValue->getType ().isMoveOnly ());
5122
5124
Address addr = getLoweredAddress (operandValue);
5123
5125
SILType addrTy = operandValue->getType ();
5124
5126
SILType objectT = addrTy.getObjectType ();
You can’t perform that action at this time.
0 commit comments