commit | e9d87f49063cb1bd213d8e9c339b9b63393cc2d9 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed May 06 17:22:41 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed May 06 17:22:41 2009 +0000 |
tree | 80127baa11f20a0ea35766d10184f71f466018a9 | |
parent | 0ec4146db70916c31281e091bb3b447aab497246 [diff] [blame] |
Simplify code by using SmallVector's pop_back_val() instead of separate back() and pop_back() calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71089 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/CloneLoop.cpp b/lib/Transforms/Utils/CloneLoop.cpp index a0306ff..7e000a1 100644 --- a/lib/Transforms/Utils/CloneLoop.cpp +++ b/lib/Transforms/Utils/CloneLoop.cpp
@@ -92,8 +92,7 @@ Loop *NewParentLoop = NULL; while (!LoopNest.empty()) { - Loop *L = LoopNest.back(); - LoopNest.pop_back(); + Loop *L = LoopNest.pop_back_val(); Loop *NewLoop = new Loop(); if (!NewParentLoop)