mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Setting the default value (fixes CRT assertions about uninitialized variable use when doing debug MSVC builds), and fixing coding style.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7eac032203
commit
061ff3409d
@ -320,7 +320,7 @@ public:
|
|||||||
virtual bool runOnMachineFunction(MachineFunction &MF) {
|
virtual bool runOnMachineFunction(MachineFunction &MF) {
|
||||||
unsigned MaxStack = 0;
|
unsigned MaxStack = 0;
|
||||||
unsigned CurrentStack = 0;
|
unsigned CurrentStack = 0;
|
||||||
bool hasPush;
|
bool HasPush = false;
|
||||||
for (MachineFunction::iterator MB = MF.begin(), ME = MF.end(); MB != ME;
|
for (MachineFunction::iterator MB = MF.begin(), ME = MF.end(); MB != ME;
|
||||||
++MB) {
|
++MB) {
|
||||||
MachineBasicBlock &MBB = *MB;
|
MachineBasicBlock &MBB = *MB;
|
||||||
@ -349,7 +349,7 @@ public:
|
|||||||
case AMDGPU::CF_ALU_PUSH_BEFORE:
|
case AMDGPU::CF_ALU_PUSH_BEFORE:
|
||||||
CurrentStack++;
|
CurrentStack++;
|
||||||
MaxStack = std::max(MaxStack, CurrentStack);
|
MaxStack = std::max(MaxStack, CurrentStack);
|
||||||
hasPush = true;
|
HasPush = true;
|
||||||
case AMDGPU::CF_ALU:
|
case AMDGPU::CF_ALU:
|
||||||
I = MI;
|
I = MI;
|
||||||
AluClauses.push_back(MakeALUClause(MBB, I));
|
AluClauses.push_back(MakeALUClause(MBB, I));
|
||||||
@ -470,7 +470,7 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MFI->StackSize = getHWStackSize(MaxStack, hasPush);
|
MFI->StackSize = getHWStackSize(MaxStack, HasPush);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user