Remove warning: 'c0' may be used uninitialized in this function.
authorChad Rosier <mcrosier@apple.com>
Tue, 28 Jun 2011 17:26:57 +0000 (17:26 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 28 Jun 2011 17:26:57 +0000 (17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index bffaa1cb3f0ab1eb2cdfe291f363b752f8872ce3..9c01446ff7f74e1659f1f29b8b62c5e49d679513 100644 (file)
@@ -6486,7 +6486,8 @@ static SDValue PerformVDUPLANECombine(SDNode *N,
 // 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));