[NVPTX] Fixes -Wrange-loop-analysis warnings
authorMark de Wever <koraq@xs4all.nl>
Sun, 22 Dec 2019 18:27:44 +0000 (19:27 +0100)
committerMark de Wever <koraq@xs4all.nl>
Sun, 22 Dec 2019 18:27:44 +0000 (19:27 +0100)
commit31262d6722c7ae6a9966a76064af43e5b3a8df71
treea575e57f0a77bc5b2049729b02ad3e3b9bb5ed1f
parent1b344e7967a7bb6ebcd71977eb5f8c47b8a92448
[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
llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp