[llvm-commits] [llvm] r156636 - /llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

Sirish Pande spande at codeaurora.org
Fri May 11 13:00:35 PDT 2012


Author: sirish
Date: Fri May 11 15:00:34 2012
New Revision: 156636

URL: http://llvm.org/viewvc/llvm-project?rev=156636&view=rev
Log:
Remove warnings from HexagonVLIWPacketizer.

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

Modified: llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp?rev=156636&r1=156635&r2=156636&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp Fri May 11 15:00:34 2012
@@ -3295,9 +3295,9 @@
 
     // Check to make sure that they both will have their predicates
     // evaluate identically
-    unsigned predRegNumSrc;
-    unsigned predRegNumDst;
-    const TargetRegisterClass* predRegClass;
+    unsigned predRegNumSrc = 0;
+    unsigned predRegNumDst = 0;
+    const TargetRegisterClass* predRegClass = NULL;
 
     // Get predicate register used in the source instruction
     for(unsigned opNum = 0; opNum < PacketMI->getNumOperands(); opNum++) {





More information about the llvm-commits mailing list