Fix issue 3778
authorBrian Sullivan <briansul@microsoft.com>
Wed, 16 Mar 2016 23:45:28 +0000 (16:45 -0700)
committerBrian Sullivan <briansul@microsoft.com>
Wed, 16 Mar 2016 23:45:28 +0000 (16:45 -0700)
Move the initialization of compGenTreeID to earlier in Compiler::compCompileHelper

src/jit/compiler.cpp

index 19d20ef..c6c405a 100644 (file)
@@ -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())