Merge pull request #836 from lioncash/initlist
Core: Initialize all JITIL RegInfo members in the initializer list.
This commit is contained in:
commit
46c18aa909
|
@ -49,16 +49,10 @@ struct RegInfo
|
||||||
unsigned numFSpills;
|
unsigned numFSpills;
|
||||||
unsigned exitNumber;
|
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:
|
private:
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
not much else we can do since many externals use it. The bad part is that there doesn't
|
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...
|
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>
|
<OpenMPSupport>true</OpenMPSupport>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<!--ClCompile Debug-->
|
<!--ClCompile Debug-->
|
||||||
|
|
Loading…
Reference in New Issue