From: jashook Date: Wed, 6 Sep 2017 16:26:22 +0000 (-0700) Subject: Fix potentially uninitialized local variable 'regCount' X-Git-Tag: accepted/tizen/base/20180629.140029~670^2~119^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fa850cd22d390f2f4b702a093ec46ebbc4c114b;p=platform%2Fupstream%2Fcoreclr.git Fix potentially uninitialized local variable 'regCount' --- diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp index 145c783..5128785 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -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))