diff options
author | Mark de Wever <koraq@xs4all.nl> | 2019-12-22 19:27:44 +0100 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2019-12-22 19:27:44 +0100 |
commit | 31262d6722c7ae6a9966a76064af43e5b3a8df71 (patch) | |
tree | a575e57f0a77bc5b2049729b02ad3e3b9bb5ed1f | |
parent | 1b344e7967a7bb6ebcd71977eb5f8c47b8a92448 (diff) | |
download | bcm5719-llvm-31262d6722c7ae6a9966a76064af43e5b3a8df71.tar.gz bcm5719-llvm-31262d6722c7ae6a9966a76064af43e5b3a8df71.zip |
[NVPTX] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Also removed the top-level const as requested by Aaron Ballman in similar
patches.
Differential Revision: https://reviews.llvm.org/D71812
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp index ca3eda28485..4296eca6a8d 100644 --- a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp +++ b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp @@ -612,7 +612,7 @@ bool NVPTXDAGToDAGISel::tryEXTRACT_VECTOR_ELEMENT(SDNode *N) { // Find and record all uses of this vector that extract element 0 or 1. SmallVector<SDNode *, 4> E0, E1; - for (const auto &U : Vector.getNode()->uses()) { + for (auto U : Vector.getNode()->uses()) { if (U->getOpcode() != ISD::EXTRACT_VECTOR_ELT) continue; if (U->getOperand(0) != Vector) |