@@ -3683,24 +3683,6 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* callNode)
3683
3683
assert(size == 1);
3684
3684
#endif
3685
3685
#endif
3686
- // If 'expectRetBuffArg' is true then the next argument is the RetBufArg
3687
- // and we may need to change nextRegNum to the theFixedRetBuffReg
3688
- //
3689
- if (expectRetBuffArg)
3690
- {
3691
- assert(passUsingFloatRegs == false);
3692
-
3693
- if (hasFixedRetBuffReg())
3694
- {
3695
- // Change the register used to pass the next argument to the fixed return buffer register
3696
- nextRegNum = theFixedRetBuffReg();
3697
- // Note that later in this method we don't increment intArgRegNum when we
3698
- // have setup nextRegRun to be the fixed retrurn buffer register
3699
- }
3700
-
3701
- // We no longer are expecting the RetBufArg
3702
- expectRetBuffArg = false;
3703
- }
3704
3686
3705
3687
#ifndef LEGACY_BACKEND
3706
3688
// If there are nonstandard args (outside the calling convention) they were inserted above
@@ -3735,6 +3717,25 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* callNode)
3735
3717
continue;
3736
3718
#endif // !LEGACY_BACKEND
3737
3719
3720
+ // If 'expectRetBuffArg' is true then the next argument is the RetBufArg
3721
+ // and we may need to change nextRegNum to the theFixedRetBuffReg
3722
+ //
3723
+ if (expectRetBuffArg)
3724
+ {
3725
+ assert(passUsingFloatRegs == false);
3726
+
3727
+ if (hasFixedRetBuffReg())
3728
+ {
3729
+ // Change the register used to pass the next argument to the fixed return buffer register
3730
+ nextRegNum = theFixedRetBuffReg();
3731
+ // Note that later in this method we don't increment intArgRegNum when we
3732
+ // have setup nextRegRun to be the fixed retrurn buffer register
3733
+ }
3734
+
3735
+ // We no longer are expecting the RetBufArg
3736
+ expectRetBuffArg = false;
3737
+ }
3738
+
3738
3739
if (!lateArgsComputed)
3739
3740
{
3740
3741
// This is a register argument - put it in the table
0 commit comments