SuperPMI: Fix `getFieldType` (dotnet/coreclr#25102)
authorCarol Eidt <carol.eidt@microsoft.com>
Wed, 12 Jun 2019 16:07:32 +0000 (09:07 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 16:07:32 +0000 (09:07 -0700)
commit86b5d20f978e23c70c4f8fa62d0d79520849c27e
tree1eca936586a9f18365eecdb63d8aba99318b4817
parentbe338b9f6c2b380ddff0a77626418272057d74e6
SuperPMI: Fix `getFieldType` (dotnet/coreclr#25102)

* SuperPMI: Fix `getFieldType`

The `structType` out parameter is optional (i.e. it may be null), but it's not used as a key, so we need to update the map if we've saved a null but encounter a non-null.

Commit migrated from https://github.com/dotnet/coreclr/commit/1bed4714dcf1ae73100f110ff2ff1642c616bb93
src/coreclr/src/ToolBox/superpmi/superpmi-shared/lightweightmap.h
src/coreclr/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp
src/coreclr/src/jit/lclvars.cpp