From: Joseph Tremoulet Date: Fri, 30 Sep 2016 19:18:55 +0000 (-0400) Subject: Clear heap PerSsaData, heapSsaMap in fgResetForSsa X-Git-Tag: submit/tizen/20210909.063632~11030^2~8965^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fc95435f2254d533f902df0b1ba12c9a10755a1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Clear heap PerSsaData, heapSsaMap in fgResetForSsa These need to be cleared for the same reasons as the locals' PerSsaData; their omission seems to be a simple oversight. Commit migrated from https://github.com/dotnet/coreclr/commit/eed63a7901ac0fe886f5a85cafbf0db62991ec91 --- diff --git a/src/coreclr/src/jit/ssabuilder.cpp b/src/coreclr/src/jit/ssabuilder.cpp index 7968b5e..13486bc 100644 --- a/src/coreclr/src/jit/ssabuilder.cpp +++ b/src/coreclr/src/jit/ssabuilder.cpp @@ -103,6 +103,8 @@ void Compiler::fgResetForSsa() { lvaTable[i].lvPerSsaData.Reset(); } + lvHeapPerSsaData.Reset(); + m_heapSsaMap = nullptr; for (BasicBlock* blk = fgFirstBB; blk != nullptr; blk = blk->bbNext) { // Eliminate phis.