[PATCH] D71815: [AMDGPU] Fixes -Wrange-loop-analysis warnings

Aaron Ballman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 09:11:19 PST 2019


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM with a request to drop top-level `const`s



================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp:865
   bool IsFirst = true;
-  for (const auto &MBB : MBBs) {
+  for (const auto MBB : MBBs) {
     if (IsFirst) {
----------------
Drop top-level `const` here and elsewhere?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71815/new/

https://reviews.llvm.org/D71815





More information about the llvm-commits mailing list