From: Alexey Bataev Date: Mon, 20 Feb 2017 08:04:11 +0000 (+0000) Subject: [SLP] nullptr'ize initial value in `findBuildAggregate()`, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fe7ec3f8ecd628544fb8709fb6a47108b184c63;p=llvm [SLP] nullptr'ize initial value in `findBuildAggregate()`, NFC. Initial value of V is sett nullptr, as it is not used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295642 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 5c95f88a3f9..bab63c2fff5 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -4614,7 +4614,7 @@ static bool findBuildVector(InsertElementInst *FirstInsertElem, static bool findBuildAggregate(InsertValueInst *IV, SmallVectorImpl &BuildVector, SmallVectorImpl &BuildVectorOpds) { - Value *V = IV; + Value *V = nullptr; do { BuildVector.push_back(IV); BuildVectorOpds.push_back(IV->getInsertedValueOperand());