diff options
| author | Robert Wilhelm <robert.wilhelm@gmx.net> | 2013-08-23 16:11:15 +0000 |
|---|---|---|
| committer | Robert Wilhelm <robert.wilhelm@gmx.net> | 2013-08-23 16:11:15 +0000 |
| commit | 344472ebeded2fca2ed5013b9e87f81d09bfa908 (patch) | |
| tree | 5be17f7e6b5c2dd9e59a9c0fa3942749dcd03ab6 /lib/Analysis/UninitializedValues.cpp | |
| parent | 7865b8e4324378e06f59adb4d60bec26a7d3d584 (diff) | |
| download | clang-344472ebeded2fca2ed5013b9e87f81d09bfa908.tar.gz clang-344472ebeded2fca2ed5013b9e87f81d09bfa908.tar.bz2 clang-344472ebeded2fca2ed5013b9e87f81d09bfa908.tar.xz | |
Use pop_back_val() instead of both back() and pop_back().
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/UninitializedValues.cpp')
| -rw-r--r-- | lib/Analysis/UninitializedValues.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Analysis/UninitializedValues.cpp b/lib/Analysis/UninitializedValues.cpp index 3d155c8174..6c6804fe9e 100644 --- a/lib/Analysis/UninitializedValues.cpp +++ b/lib/Analysis/UninitializedValues.cpp @@ -240,10 +240,9 @@ const CFGBlock *DataflowWorklist::dequeue() { // First dequeue from the worklist. This can represent // updates along backedges that we want propagated as quickly as possible. - if (!worklist.empty()) { - B = worklist.back(); - worklist.pop_back(); - } + if (!worklist.empty()) + B = worklist.pop_back_val(); + // Next dequeue from the initial reverse post order. This is the // theoretical ideal in the presence of no back edges. else if (PO_I != PO_E) { @@ -527,8 +526,7 @@ public: // of marking it as not being a candidate element of the frontier. SuccsVisited[block->getBlockID()] = block->succ_size(); while (!Queue.empty()) { - const CFGBlock *B = Queue.back(); - Queue.pop_back(); + const CFGBlock *B = Queue.pop_back_val(); for (CFGBlock::const_pred_iterator I = B->pred_begin(), E = B->pred_end(); I != E; ++I) { const CFGBlock *Pred = *I; |
