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/lib/AST/NestedNameSpecifier.cpp | |
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/lib/AST/NestedNameSpecifier.cpp')
-rw-r--r-- | clang/lib/AST/NestedNameSpecifier.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp index 79cc21a062c..b03c4e09fa4 100644 --- a/clang/lib/AST/NestedNameSpecifier.cpp +++ b/clang/lib/AST/NestedNameSpecifier.cpp @@ -566,8 +566,7 @@ void NestedNameSpecifierLocBuilder::MakeTrivial(ASTContext &Context, for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) Stack.push_back(NNS); while (!Stack.empty()) { - NestedNameSpecifier *NNS = Stack.back(); - Stack.pop_back(); + NestedNameSpecifier *NNS = Stack.pop_back_val(); switch (NNS->getKind()) { case NestedNameSpecifier::Identifier: case NestedNameSpecifier::Namespace: |