From 0b03cbd41668709c9070f3d6531aca1937c5b12c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 13 May 2012 15:13:22 +0000 Subject: [PATCH] Hexagon: Initialize TBB to 0. Found by valgrind. llvm-svn: 156744 --- llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp index b6ec8e10bc9b..eba6ab51b497 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 &Cond, bool AllowModify) const { + TBB = NULL; FBB = NULL; // If the block has no terminators, it just falls into the block after it.