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 | 25284cc95b87b12c83a54aaf891f3c7d8a521186 (patch) | |
tree | c70e8b7b0d66233d13d9a33aa6eccaaa62d003ec /clang/tools | |
parent | b09bb1ce19c34981a11a1a0f0239f0c043e3d474 (diff) | |
download | bcm5719-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.cpp | 3 |
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()); |