Merge pull request #836 from lioncash/initlist

Core: Initialize all JITIL RegInfo members in the initializer list.
This commit is contained in:
shuffle2 2014-09-03 21:03:48 -07:00
commit 46c18aa909
2 changed files with 4 additions and 10 deletions

View File

@ -49,16 +49,10 @@ struct RegInfo
unsigned numFSpills;
unsigned exitNumber;
RegInfo(JitIL* j, InstLoc f, unsigned insts) : Jit(j), FirstI(f), IInfo(insts), lastUsed(insts)
RegInfo(JitIL* j, InstLoc f, unsigned insts)
: Jit(j), Build(nullptr), FirstI(f), IInfo(insts), lastUsed(insts)
, regs(), fregs(), numSpills(0), numFSpills(0), exitNumber(0)
{
for (unsigned i = 0; i < MAX_NUMBER_OF_REGS; i++)
{
regs[i] = nullptr;
fregs[i] = nullptr;
}
numSpills = 0;
numFSpills = 0;
exitNumber = 0;
}
private:

View File

@ -68,7 +68,7 @@
not much else we can do since many externals use it. The bad part is that there doesn't
seem to be a way to only ignore the specific instance we don't care about...
-->
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<DisableSpecificWarnings>4996;4351</DisableSpecificWarnings>
<OpenMPSupport>true</OpenMPSupport>
</ClCompile>
<!--ClCompile Debug-->