summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExplodedGraph.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/StaticAnalyzer/Core/ExplodedGraph.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/StaticAnalyzer/Core/ExplodedGraph.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp b/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
index af9518acc79..e9c4a35de6e 100644
--- a/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
@@ -357,8 +357,7 @@ ExplodedGraph::trim(ArrayRef<const NodeTy *> Sinks,
// Process the first worklist until it is empty.
while (!WL1.empty()) {
- const ExplodedNode *N = WL1.back();
- WL1.pop_back();
+ const ExplodedNode *N = WL1.pop_back_val();
// Have we already visited this node? If so, continue to the next one.
if (Pass1.count(N))
@@ -388,8 +387,7 @@ ExplodedGraph::trim(ArrayRef<const NodeTy *> Sinks,
// ===- Pass 2 (forward DFS to construct the new graph) -===
while (!WL2.empty()) {
- const ExplodedNode *N = WL2.back();
- WL2.pop_back();
+ const ExplodedNode *N = WL2.pop_back_val();
// Skip this node if we have already processed it.
if (Pass2.find(N) != Pass2.end())
OpenPOWER on IntegriCloud