summaryrefslogtreecommitdiffstats
path: root/clang/tools
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/tools
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/tools')
-rw-r--r--clang/tools/libclang/CIndex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index c89a121827e..765c9000121 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -2256,8 +2256,7 @@ bool CursorVisitor::IsInRegionOfInterest(CXCursor C) {
bool CursorVisitor::RunVisitorWorkList(VisitorWorkList &WL) {
while (!WL.empty()) {
// Dequeue the worklist item.
- VisitorJob LI = WL.back();
- WL.pop_back();
+ VisitorJob LI = WL.pop_back_val();
// Set the Parent field, then back to its old value once we're done.
SetParentRAII SetParent(Parent, StmtParent, LI.getParent());
OpenPOWER on IntegriCloud