diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-05-23 14:55:00 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-05-23 14:55:00 +0000 |
commit | 061ff3409d4f6db313448fa8d916313233789516 (patch) | |
tree | 38ba869ae937dff99f53a741650a7e1e0f369de2 /lib/Target/R600/R600ControlFlowFinalizer.cpp | |
parent | 7eac03220344d1b558ea6690cf73d2b76c7e551e (diff) | |
download | llvm-061ff3409d4f6db313448fa8d916313233789516.tar.gz llvm-061ff3409d4f6db313448fa8d916313233789516.tar.bz2 llvm-061ff3409d4f6db313448fa8d916313233789516.tar.xz |
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
Diffstat (limited to 'lib/Target/R600/R600ControlFlowFinalizer.cpp')
-rw-r--r-- | lib/Target/R600/R600ControlFlowFinalizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/R600/R600ControlFlowFinalizer.cpp b/lib/Target/R600/R600ControlFlowFinalizer.cpp index 65a4801be0..e114d20177 100644 --- a/lib/Target/R600/R600ControlFlowFinalizer.cpp +++ b/lib/Target/R600/R600ControlFlowFinalizer.cpp @@ -320,7 +320,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; @@ -349,7 +349,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)); @@ -470,7 +470,7 @@ public: break; } } - MFI->StackSize = getHWStackSize(MaxStack, hasPush); + MFI->StackSize = getHWStackSize(MaxStack, HasPush); } return false; |