Apply clang-tidy fixes for performance-for-range-copy in ModuleBufferization.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-01-08 21:21:42 +00:00
parent 6a38cbfb53
commit 0c9d59e56a
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ struct CallOpInterface
// 1. Compute the result types of the new CallOp. Tensor results that are
// equivalent to a FuncOp bbArg are no longer returned.
for (auto it : llvm::enumerate(callOp.getResultTypes())) {
for (const auto &it : llvm::enumerate(callOp.getResultTypes())) {
unsigned returnValIdx = it.index();
Type returnType = it.value();
if (!isaTensor(returnType)) {