aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2018-02-19 21:44:52 +0000
committerBrian Gesiak <modocache@gmail.com>2018-02-19 21:44:52 +0000
commit49a9d1a4e6f06299f6c87d693e585d388808f643 (patch)
tree47a74085537f3004d6b46baff299fee82e92a297 /llvm/lib/Object/Object.cpp
parente41295495363d100d23e798dc973209ff641641b (diff)
downloadllvm-49a9d1a4e6f06299f6c87d693e585d388808f643.zip
llvm-49a9d1a4e6f06299f6c87d693e585d388808f643.tar.gz
llvm-49a9d1a4e6f06299f6c87d693e585d388808f643.tar.bz2
[mem2reg] Use range loops (NFCI)
Summary: Several for loops in PromoteMemoryToRegister.cpp leave their increment expression empty, instead incrementing the iterator within the for loop body. I believe this is because these loops were previously implemented as while loops; see https://reviews.llvm.org/rL188327. Incrementing the iterator within the body of the for loop instead of in its increment expression makes it seem like the iterator will be modified or conditionally incremented within the loop, but that is not the case in these loops. Instead, use range loops. Test Plan: `check-llvm` Reviewers: davide, bkramer Reviewed By: davide, bkramer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43473 llvm-svn: 325532
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions