summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorRobert Wilhelm <robert.wilhelm@gmx.net>2013-08-23 16:11:15 +0000
committerRobert Wilhelm <robert.wilhelm@gmx.net>2013-08-23 16:11:15 +0000
commit25284cc95b87b12c83a54aaf891f3c7d8a521186 (patch)
treec70e8b7b0d66233d13d9a33aa6eccaaa62d003ec /clang/lib/Analysis/LiveVariables.cpp
parentb09bb1ce19c34981a11a1a0f0239f0c043e3d474 (diff)
downloadbcm5719-llvm-25284cc95b87b12c83a54aaf891f3c7d8a521186.tar.gz
bcm5719-llvm-25284cc95b87b12c83a54aaf891f3c7d8a521186.zip
Use pop_back_val() instead of both back() and pop_back().
No functionality change intended. llvm-svn: 189112
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r--clang/lib/Analysis/LiveVariables.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp
index 1583fcb3de0..38db72a150b 100644
--- a/clang/lib/Analysis/LiveVariables.cpp
+++ b/clang/lib/Analysis/LiveVariables.cpp
@@ -87,8 +87,7 @@ void DataflowWorklist::sortWorklist() {
const CFGBlock *DataflowWorklist::dequeue() {
if (worklist.empty())
return 0;
- const CFGBlock *b = worklist.back();
- worklist.pop_back();
+ const CFGBlock *b = worklist.pop_back_val();
enqueuedBlocks[b->getBlockID()] = false;
return b;
}
OpenPOWER on IntegriCloud