Guard a use of a possibly-uninitialized BitSet.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 1 Mar 2017 04:51:07 +0000 (20:51 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Wed, 1 Mar 2017 04:51:07 +0000 (20:51 -0800)
commit1549cd8ca264030e18331d6f2040dc1696b800e9
tree24b5be606c154af89233b229007f4e616a2e9f9d
parent4741d5a1c9d84807b1a69b37b36295bc22bdb87a
Guard a use of a possibly-uninitialized BitSet.

Part of the range check optimization pass was not checking to ensure that a bitset
was initialized before attempting to access it. This was causing one of the new
tests for Vector.Narrow to fail with an AV.

Commit migrated from https://github.com/dotnet/coreclr/commit/06cdb2191857b6fab899b8ae1150604447e064ad
src/coreclr/src/jit/rangecheck.cpp