File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2994,12 +2994,12 @@ class UseRewriter : SILInstructionVisitor<UseRewriter> {
2994
2994
switch (bi->getBuiltinKind ().value_or (BuiltinValueKind::None)) {
2995
2995
case BuiltinValueKind::ResumeNonThrowingContinuationReturning: {
2996
2996
SILValue opAddr = addrMat.materializeAddress (use->get ());
2997
- bi->setOperand (1 , opAddr);
2997
+ bi->setOperand (use-> getOperandNumber () , opAddr);
2998
2998
break ;
2999
2999
}
3000
3000
case BuiltinValueKind::ResumeThrowingContinuationReturning: {
3001
3001
SILValue opAddr = addrMat.materializeAddress (use->get ());
3002
- bi->setOperand (1 , opAddr);
3002
+ bi->setOperand (use-> getOperandNumber () , opAddr);
3003
3003
break ;
3004
3004
}
3005
3005
case BuiltinValueKind::Copy: {
You can’t perform that action at this time.
0 commit comments