Fix ValueNumStore::IsVNArrLenUnsignedBound checks
authorMike Danes <onemihaid@hotmail.com>
Thu, 16 Mar 2017 21:38:45 +0000 (23:38 +0200)
committerMike Danes <onemihaid@hotmail.com>
Thu, 16 Mar 2017 21:38:45 +0000 (23:38 +0200)
commit33a51342229b66eec0b80e02432bc94f39066447
tree6e13d0150607233b0b600716df63d9499eae9f69
parente20d318c184a6bfaaadaa55d317fd4a3b4b4854e
Fix ValueNumStore::IsVNArrLenUnsignedBound checks

VNFuncApp::m_func should be checked first to be sure that m_args[0] and m_args[1] contain valid VNs. It's not clear if m_func can ever be something other than a binary func in the case of a relop VN but the code doesn't look right as it is.

Commit migrated from https://github.com/dotnet/coreclr/commit/54b1709d4625d9c70a42b2e1321ae9594c49f858
src/coreclr/src/jit/valuenum.cpp