Skip to content

Commit bdc9cac

Browse files
Remove const and & from tuples when using enumerate
Signed-off-by: Davide Grohmann <[email protected]> Change-Id: I6b16b83d1b98b7cc0d28d553c3702f5a6ffc1840
1 parent 6cc4aaf commit bdc9cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/SPIRV/IR/ArmGraphOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ LogicalResult spirv::GraphARMOp::verifyBody() {
144144

145145
ValueTypeRange<OperandRange> graphOutputOperandTypes =
146146
op.getValue().getType();
147-
for (const auto [index, type] : llvm::enumerate(graphOutputOperandTypes)) {
147+
for (auto [index, type] : llvm::enumerate(graphOutputOperandTypes)) {
148148
if (type != grType.getResult(index))
149149
return op.emitError("type of return operand ")
150150
<< index << " (" << type << ") doesn't match graph result type ("
@@ -194,7 +194,7 @@ LogicalResult spirv::GraphOutputsARMOp::verify() {
194194
<< getNumOperands() << " operands, but enclosing spirv.ARM.Graph (@"
195195
<< graph.getName() << ") returns " << results.size();
196196

197-
for (const auto &[index, result] : llvm::enumerate(results))
197+
for (auto [index, result] : llvm::enumerate(results))
198198
if (getOperand(index).getType() != result)
199199
return emitError() << "type of return operand " << index << " ("
200200
<< getOperand(index).getType()

0 commit comments

Comments
 (0)