Hexagon: Initialize TBB to 0.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 13 May 2012 15:13:22 +0000 (15:13 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 13 May 2012 15:13:22 +0000 (15:13 +0000)
Found by valgrind.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156744 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonInstrInfo.cpp

index b6ec8e10bc9be30d889904f7e2d0636c63fb0e6d..eba6ab51b497fe9ec7e8e80a7f3782666f317102 100644 (file)
@@ -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.