summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-05-13 15:13:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-05-13 15:13:22 +0000
commit0b03cbd41668709c9070f3d6531aca1937c5b12c (patch)
treefa0da2d8b074af5f3f1840e44a2712a9740630b4 /llvm/lib/Target
parent81b82a0ebf4d9eb515a20955043460d13e9b95ea (diff)
downloadbcm5719-llvm-0b03cbd41668709c9070f3d6531aca1937c5b12c.tar.gz
bcm5719-llvm-0b03cbd41668709c9070f3d6531aca1937c5b12c.zip
Hexagon: Initialize TBB to 0.
Found by valgrind. llvm-svn: 156744
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
index b6ec8e10bc9..eba6ab51b49 100644
--- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
@@ -171,6 +171,7 @@ bool HexagonInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,
MachineBasicBlock *&FBB,
SmallVectorImpl<MachineOperand> &Cond,
bool AllowModify) const {
+ TBB = NULL;
FBB = NULL;
// If the block has no terminators, it just falls into the block after it.
OpenPOWER on IntegriCloud