diff --git a/src/coreclr/jit/lclvars.cpp b/src/coreclr/jit/lclvars.cpp index a9abde124fc37b..e8e4e9999f80e7 100644 --- a/src/coreclr/jit/lclvars.cpp +++ b/src/coreclr/jit/lclvars.cpp @@ -3341,7 +3341,7 @@ class LclVarDsc_SmallCode_Less { if (dsc1->lvIsRegArg) { - weight2 += 2 * BB_UNITY_WEIGHT_UNSIGNED; + weight1 += 2 * BB_UNITY_WEIGHT_UNSIGNED; } if (varTypeIsGC(dsc1->TypeGet()))