Skip to content

Commit

Permalink
[SLP] nullptr'ize initial value in findBuildAggregate(), NFC.
Browse files Browse the repository at this point in the history
Initial value of V is sett nullptr, as it is not used.

llvm-svn: 295642
  • Loading branch information
alexey-bataev committed Feb 20, 2017
1 parent 2f6b124 commit f96465b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f96465b

Please sign in to comment.