OSDN Git Service

[SLP] Remove unused initial value from the variable, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 22 Feb 2017 12:57:58 +0000 (12:57 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 22 Feb 2017 12:57:58 +0000 (12:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295826 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

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