This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IMGREL32 static field addr value-num blindspot
When `fgMorphField` lowers a static field reference for which `eeGetRelocTypeHint` returns `IMAGE_REL_BASED_REL32`, it creates an `IntCon`, flagged with `GFT_ICON_STATIC_HDL` and marked with the static field in its `gtFieldSeq` field, to represent the field's address (as opposed to the normal case where it generates a `ClsVar`). This change updates the `IsFieldAddr` helper used by value-numbering/loop-hoisting to recognize such constants as the appropriate field address, which then allows the disambiguation/tracking of accesses to these fields to kick in as it does for `ClsVar` nodes. Fixes #6900.
- Loading branch information