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) {
51095109}
51105110
51115111void IRGenSILFunction::visitRetainValueInst (swift::RetainValueInst *i) {
5112+ assert (!i->getOperand ()->getType ().isMoveOnly ());
51125113 Explosion in = getLoweredExplosion (i->getOperand ());
51135114 Explosion out;
51145115 cast<LoadableTypeInfo>(getTypeInfo (i->getOperand ()->getType ()))
@@ -5119,6 +5120,7 @@ void IRGenSILFunction::visitRetainValueInst(swift::RetainValueInst *i) {
51195120
51205121void IRGenSILFunction::visitRetainValueAddrInst (swift::RetainValueAddrInst *i) {
51215122 SILValue operandValue = i->getOperand ();
5123+ assert (!operandValue->getType ().isMoveOnly ());
51225124 Address addr = getLoweredAddress (operandValue);
51235125 SILType addrTy = operandValue->getType ();
51245126 SILType objectT = addrTy.getObjectType ();
You can’t perform that action at this time.
0 commit comments