Commit 1e3c34de authored by Bill Wendling's avatar Bill Wendling
Browse files

Merging r182585:

------------------------------------------------------------------------
r182585 | aaronballman | 2013-05-23 07:55:00 -0700 (Thu, 23 May 2013) | 1 line

Setting the default value (fixes CRT assertions about uninitialized variable use when doing debug MSVC builds), and fixing coding style.
------------------------------------------------------------------------

llvm-svn: 182830
parent 969c3b95
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ public:
  virtual bool runOnMachineFunction(MachineFunction &MF) {
    unsigned MaxStack = 0;
    unsigned CurrentStack = 0;
    bool hasPush;
    bool HasPush = false;
    for (MachineFunction::iterator MB = MF.begin(), ME = MF.end(); MB != ME;
        ++MB) {
      MachineBasicBlock &MBB = *MB;
@@ -354,7 +354,7 @@ public:
        case AMDGPU::CF_ALU_PUSH_BEFORE:
          CurrentStack++;
          MaxStack = std::max(MaxStack, CurrentStack);
          hasPush = true;
          HasPush = true;
        case AMDGPU::CF_ALU:
          I = MI;
          AluClauses.push_back(MakeALUClause(MBB, I));
@@ -475,7 +475,7 @@ public:
          break;
        }
      }
      MFI->StackSize = getHWStackSize(MaxStack, hasPush);
      MFI->StackSize = getHWStackSize(MaxStack, HasPush);
    }

    return false;