1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix cppcheck shadow variable and variable scope warnings. NFCI.

llvm-svn: 370580
This commit is contained in:
Simon Pilgrim 2019-08-31 12:30:19 +00:00
parent 1746c5a1e3
commit 7282dc840a

View File

@ -1346,12 +1346,12 @@ private:
if (ReuseShuffleIndices.empty())
dbgs() << "Emtpy";
else
for (unsigned Idx : ReuseShuffleIndices)
dbgs() << Idx << ", ";
for (unsigned ReuseIdx : ReuseShuffleIndices)
dbgs() << ReuseIdx << ", ";
dbgs() << "\n";
dbgs() << "ReorderIndices: ";
for (unsigned Idx : ReorderIndices)
dbgs() << Idx << ", ";
for (unsigned ReorderIdx : ReorderIndices)
dbgs() << ReorderIdx << ", ";
dbgs() << "\n";
dbgs() << "UserTreeIndices: ";
for (const auto &EInfo : UserTreeIndices)
@ -6579,10 +6579,9 @@ static bool findBuildVector(InsertElementInst *LastInsertElem,
/// \return true if it matches.
static bool findBuildAggregate(InsertValueInst *IV,
SmallVectorImpl<Value *> &BuildVectorOpds) {
Value *V;
do {
BuildVectorOpds.push_back(IV->getInsertedValueOperand());
V = IV->getAggregateOperand();
Value *V = IV->getAggregateOperand();
if (isa<UndefValue>(V))
break;
IV = dyn_cast<InsertValueInst>(V);