diff --git a/src/coreclr/jit/block.cpp b/src/coreclr/jit/block.cpp index 5fe74c76fa1c8a..88359c6d8ec7c0 100644 --- a/src/coreclr/jit/block.cpp +++ b/src/coreclr/jit/block.cpp @@ -983,10 +983,10 @@ unsigned JitPtrKeyFuncs::GetHashCode(const BasicBlock* ptr) unsigned hash = SsaStressHashHelper(); if (hash != 0) { - return (hash ^ (ptr->bbNum << 16) ^ ptr->bbNum); + return (hash ^ (ptr->bbID << 16) ^ ptr->bbID); } #endif - return ptr->bbNum; + return ptr->bbID; } //------------------------------------------------------------------------