Skip to content

Commit 352acf4

Browse files
Go back to typing the "first field map" as a field
This is a temporary change to minimize diffs. The issue is that we need to update both the reading and writing code at once if we want to change the types of the maps without some regressions due to new artificial mismatches.
1 parent 3744a29 commit 352acf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/jit/valuenum.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7795,8 +7795,8 @@ void Compiler::fgValueNumberAssignment(GenTreeOp* tree)
77957795

77967796
// Construct the "field map" VN. It represents memory state of the first field
77977797
// of all objects on the heap. This is our primary map.
7798-
ValueNum fldMapVN = vnStore->VNForMapSelect(VNK_Liberal, TYP_REF, fgCurMemoryVN[GcHeap],
7799-
firstFieldSelectorVN);
7798+
ValueNum fldMapVN = vnStore->VNForMapSelect(VNK_Liberal, firstFieldType,
7799+
fgCurMemoryVN[GcHeap], firstFieldSelectorVN);
78007800

78017801
ValueNum firstFieldValueSelectorVN = ValueNumStore::NoVN;
78027802
if (obj != nullptr)

0 commit comments

Comments
 (0)