[SLP] nullptr'ize initial value in findBuildAggregate(), NFC.

Initial value of V is sett nullptr, as it is not used.

llvm-svn: 295642
This commit is contained in:
Alexey Bataev
2017-02-20 08:04:11 +00:00
parent 2f6b124e01
commit f96465b9b8

View File

@@ -4614,7 +4614,7 @@ static bool findBuildVector(InsertElementInst *FirstInsertElem,
static bool findBuildAggregate(InsertValueInst *IV,
SmallVectorImpl<Value *> &BuildVector,
SmallVectorImpl<Value *> &BuildVectorOpds) {
Value *V = IV;
Value *V = nullptr;
do {
BuildVector.push_back(IV);
BuildVectorOpds.push_back(IV->getInsertedValueOperand());