[llvm-commits] [llvm] r134014 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Chad Rosier mcrosier at apple.com
Tue Jun 28 10:26:57 PDT 2011


Author: mcrosier
Date: Tue Jun 28 12:26:57 2011
New Revision: 134014

URL: http://llvm.org/viewvc/llvm-project?rev=134014&view=rev
Log:
Remove warning: 'c0' may be used uninitialized in this function.

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=134014&r1=134013&r2=134014&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Tue Jun 28 12:26:57 2011
@@ -6486,7 +6486,8 @@
 // elements are the same constant, C, and Log2(C) ranges from 1 to 32.
 static bool isConstVecPow2(SDValue ConstVec, bool isSigned, uint64_t &C)
 {
-  integerPart c0, cN;
+  integerPart cN;
+  integerPart c0 = 0;
   for (unsigned I = 0, E = ConstVec.getValueType().getVectorNumElements();
        I != E; I++) {
     ConstantFPSDNode *C = dyn_cast<ConstantFPSDNode>(ConstVec.getOperand(I));





More information about the llvm-commits mailing list