From 118c9a0c494c97fe23c43f3e2aca553aea3a4f16 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 28 Jun 2011 17:26:57 +0000 Subject: [PATCH] Remove warning: 'c0' may be used uninitialized in this function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134014 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMISelLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index bffaa1cb3f0..9c01446ff7f 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -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(ConstVec.getOperand(I)); -- 2.34.1