summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-16 00:01:27 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-16 00:01:27 +0000
commitfe586b3e3800b397256ca9ee6a2811fc6ce7dce9 (patch)
tree9fa27e8ab00a8e20fab8fa708d90861c9ce6d719 /lib/CodeGen/BranchFolding.cpp
parent408e9d166a66c8891637975921de2980c1940c3f (diff)
downloadllvm-fe586b3e3800b397256ca9ee6a2811fc6ce7dce9.tar.gz
llvm-fe586b3e3800b397256ca9ee6a2811fc6ce7dce9.tar.bz2
llvm-fe586b3e3800b397256ca9ee6a2811fc6ce7dce9.tar.xz
Initialize uninitialized variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 6c8e09141b..6d30f6e593 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -1274,7 +1274,7 @@ ReoptimizeBlock:
// Okay, there is no really great place to put this block. If, however,
// the block before this one would be a fall-through if this block were
// removed, move this block to the end of the function.
- MachineBasicBlock *PrevTBB, *PrevFBB;
+ MachineBasicBlock *PrevTBB = 0, *PrevFBB = 0;
SmallVector<MachineOperand, 4> PrevCond;
if (FallThrough != MF.end() &&
!TII->AnalyzeBranch(PrevBB, PrevTBB, PrevFBB, PrevCond, true) &&