diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 288a69d66d913..93fb5bdee98a3 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -2453,6 +2453,7 @@ bool GenTree::Compare(GenTree* op1, GenTree* op2, bool swapOK) switch (oper) { case GT_LCL_VAR: + case GT_LCL_VAR_ADDR: if (op1->AsLclVarCommon()->GetLclNum() != op2->AsLclVarCommon()->GetLclNum()) { break; @@ -2461,6 +2462,7 @@ bool GenTree::Compare(GenTree* op1, GenTree* op2, bool swapOK) return true; case GT_LCL_FLD: + case GT_LCL_FLD_ADDR: if ((op1->AsLclFld()->GetLclNum() != op2->AsLclFld()->GetLclNum()) || (op1->AsLclFld()->GetLclOffs() != op2->AsLclFld()->GetLclOffs()) || (op1->AsLclFld()->GetLayout() != op2->AsLclFld()->GetLayout()))