diff --git a/src/coreclr/jit/lower.cpp b/src/coreclr/jit/lower.cpp index 25cfb5409d957..9c1b253570077 100644 --- a/src/coreclr/jit/lower.cpp +++ b/src/coreclr/jit/lower.cpp @@ -2061,8 +2061,8 @@ GenTree* Lowering::LowerCallMemcmp(GenTreeCall* call) GenTree* zeroCns = comp->gtNewZeroConNode(actualLoadType); result = newBinaryOp(comp, GT_EQ, TYP_INT, resultOr, zeroCns); - BlockRange().InsertAfter(rArgClone, l1Indir, r1Indir, l2Offs, l2AddOffs); - BlockRange().InsertAfter(l2AddOffs, l2Indir, r2Offs, r2AddOffs, r2Indir); + BlockRange().InsertAfter(rArgClone, l1Indir, l2Offs, l2AddOffs, l2Indir); + BlockRange().InsertAfter(l2Indir, r1Indir, r2Offs, r2AddOffs, r2Indir); BlockRange().InsertAfter(r2Indir, lXor, rXor, resultOr, zeroCns); BlockRange().InsertAfter(zeroCns, result); }