[NFC] Fixes -Wrange-loop-analysis warnings

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.

Differential Revision: https://reviews.llvm.org/D72210
This commit is contained in:
Mark de Wever 2020-01-05 14:26:39 +01:00
parent ea2c159f96
commit 1d549cff48
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ GenericLoopNestRangeBuilder<
SmallVector<ValueHandle, 4> lbs;
SmallVector<ValueHandle, 4> ubs;
SmallVector<int64_t, 4> steps;
for (const Value range : ranges) {
for (Value range : ranges) {
assert(range.getType() && "expected linalg.range type");
assert(range.getDefiningOp() && "need operations to extract range parts");
RangeOp rangeOp = cast<RangeOp>(range.getDefiningOp());

View File

@ -178,7 +178,7 @@ struct DOTGraphTraits<ScopDetectionWrapperPass *>
RegionInfo *RI = R->getRegionInfo();
for (const auto &BB : R->blocks())
for (BasicBlock *BB : R->blocks())
if (RI->getRegionFor(BB) == R)
O.indent(2 * (depth + 1))
<< "Node"