forked from OSchip/llvm-project
[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:
parent
ea2c159f96
commit
1d549cff48
|
@ -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());
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue