summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-24 04:05:21 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-24 04:05:21 +0000
commitd7708773288c4f33bf98c724f7a486b5973b8cc6 (patch)
treeda2706e419335edde86f19e16552adcc1da3cd21 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent024402dcdf0c45b48b15d9a5de7f841e61e9bedc (diff)
downloadbcm5719-llvm-d7708773288c4f33bf98c724f7a486b5973b8cc6.tar.gz
bcm5719-llvm-d7708773288c4f33bf98c724f7a486b5973b8cc6.zip
Switch more loops to be range-based
This makes the code a little more concise, no functional change is intended. llvm-svn: 273644
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 40f5d4ce361..a06c8499e19 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1287,8 +1287,7 @@ updateInlinedAtInfo(const DebugLoc &DL, DILocation *InlinedAtNode,
// Starting from the top, rebuild the nodes to point to the new inlined-at
// location (then rebuilding the rest of the chain behind it) and update the
// map of already-constructed inlined-at nodes.
- for (const DILocation *MD : make_range(InlinedAtLocations.rbegin(),
- InlinedAtLocations.rend())) {
+ for (const DILocation *MD : reverse(InlinedAtLocations)) {
Last = IANodes[MD] = DILocation::getDistinct(
Ctx, MD->getLine(), MD->getColumn(), MD->getScope(), Last);
}
OpenPOWER on IntegriCloud