diff options
author | Mark de Wever <koraq@xs4all.nl> | 2019-12-22 18:58:32 +0100 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2019-12-22 18:58:32 +0100 |
commit | e8d448ec255c7034cd00d1e0d1469eb6b31682ae (patch) | |
tree | 8932a61430ae402e2468b357c3f6900023fd6761 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | be051f4312aa0952b7cf937f44b9b46e4ffee627 (diff) | |
download | llvm-e8d448ec255c7034cd00d1e0d1469eb6b31682ae.zip llvm-e8d448ec255c7034cd00d1e0d1469eb6b31682ae.tar.gz llvm-e8d448ec255c7034cd00d1e0d1469eb6b31682ae.tar.bz2 |
[TableGen] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Differential Revision: https://reviews.llvm.org/D71807
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 332581a..d01de33 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -636,7 +636,7 @@ bool TypeInfer::EnforceVectorSubVectorTypeIs(TypeSetByHwMode &Vec, /// Return true if S has no element (vector type) that T is a sub-vector of, /// i.e. has the same element type as T and more elements. auto NoSubV = [&IsSubVec](const TypeSetByHwMode::SetType &S, MVT T) -> bool { - for (const auto &I : S) + for (auto I : S) if (IsSubVec(T, I)) return false; return true; @@ -645,7 +645,7 @@ bool TypeInfer::EnforceVectorSubVectorTypeIs(TypeSetByHwMode &Vec, /// Return true if S has no element (vector type) that T is a super-vector /// of, i.e. has the same element type as T and fewer elements. auto NoSupV = [&IsSubVec](const TypeSetByHwMode::SetType &S, MVT T) -> bool { - for (const auto &I : S) + for (auto I : S) if (IsSubVec(I, T)) return false; return true; |