[all-commits] [llvm/llvm-project] eeef50: [mlir] Fix -Wrange-loo-analysis warnings
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Jan 1 16:09:47 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: eeef50b1fee91dbe993187324003d2665ceae331
https://github.com/llvm/llvm-project/commit/eeef50b1fee91dbe993187324003d2665ceae331
Author: Fangrui Song <maskray at google.com>
Date: 2020-01-01 (Wed, 01 Jan 2020)
Changed paths:
M mlir/lib/Conversion/LoopsToGPU/LoopsToGPU.cpp
M mlir/lib/Dialect/Traits.cpp
M mlir/lib/Dialect/VectorOps/VectorOps.cpp
M mlir/lib/IR/TypeUtilities.cpp
M mlir/lib/Parser/Parser.cpp
M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
M mlir/tools/mlir-tblgen/StructsGen.cpp
Log Message:
-----------
[mlir] Fix -Wrange-loo-analysis warnings
for (const auto &x : llvm::zip(..., ...))
->
for (auto x : llvm::zip(..., ...))
The return type of zip() is a wrapper that wraps a tuple of references.
> warning: loop variable 'p' is always a copy because the range of type 'detail::zippy<detail::zip_shortest, ArrayRef<long> &, ArrayRef<long> &>' does not return a reference [-Wrange-loop-analysis]
More information about the All-commits
mailing list