From d7708773288c4f33bf98c724f7a486b5973b8cc6 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 24 Jun 2016 04:05:21 +0000 Subject: Switch more loops to be range-based This makes the code a little more concise, no functional change is intended. llvm-svn: 273644 --- llvm/lib/Transforms/Scalar/LoopDistribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp') diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp index a62a44b..464db8e 100644 --- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp @@ -184,7 +184,7 @@ public: // Delete the instructions backwards, as it has a reduced likelihood of // having to update as many def-use and use-def chains. - for (auto *Inst : make_range(Unused.rbegin(), Unused.rend())) { + for (auto *Inst : reverse(Unused)) { if (!Inst->use_empty()) Inst->replaceAllUsesWith(UndefValue::get(Inst->getType())); Inst->eraseFromParent(); -- cgit v1.1