From: Brian Sullivan Date: Wed, 16 Mar 2016 23:45:28 +0000 (-0700) Subject: Fix issue 3778 X-Git-Tag: accepted/tizen/base/20180629.140029~5283^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a79b94e0c1dd8e7e7dbaa4afbdfc38d5f6a59718;p=platform%2Fupstream%2Fcoreclr.git Fix issue 3778 Move the initialization of compGenTreeID to earlier in Compiler::compCompileHelper --- diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp index 19d20ef..c6c405a 100644 --- a/src/jit/compiler.cpp +++ b/src/jit/compiler.cpp @@ -4785,6 +4785,9 @@ int Compiler::compCompileHelper (CORINFO_MODULE_HANDLE clas #ifdef DEBUG compCurBB = 0; lvaTable = 0; + + // Reset node ID counter + compGenTreeID = 0; #endif /* Initialize emitter */ @@ -4939,9 +4942,6 @@ int Compiler::compCompileHelper (CORINFO_MODULE_HANDLE clas { s_compMethodsCount++; } - - // Reset node ID counter - compGenTreeID = 0; #endif if (compIsForInlining())