[llvm-commits] [llvm] r156744 - /llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp

Benjamin Kramer benny.kra at googlemail.com
Sun May 13 08:13:23 PDT 2012


Author: d0k
Date: Sun May 13 10:13:22 2012
New Revision: 156744

URL: http://llvm.org/viewvc/llvm-project?rev=156744&view=rev
Log:
Hexagon: Initialize TBB to 0.

Found by valgrind.

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=156744&r1=156743&r2=156744&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Sun May 13 10:13:22 2012
@@ -171,6 +171,7 @@
                                  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.





More information about the llvm-commits mailing list