Fix potentially uninitialized local variable 'regCount'
authorjashook <jashoo@microsoft.com>
Wed, 6 Sep 2017 16:26:22 +0000 (09:26 -0700)
committerjashook <jashoo@microsoft.com>
Wed, 6 Sep 2017 16:26:22 +0000 (09:26 -0700)
src/jit/codegenxarch.cpp

index 145c783..5128785 100644 (file)
@@ -1398,7 +1398,7 @@ void CodeGen::genReturn(GenTreePtr treeNode)
         // right after the "return", we need to preserve the return reg's GC state
         // across the call until actual method return.
         ReturnTypeDesc retTypeDesc;
-        unsigned       regCount;
+        unsigned       regCount = 0;
         if (compiler->compMethodReturnsMultiRegRetType())
         {
             if (varTypeIsLong(compiler->info.compRetNativeType))