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 | 344472ebeded2fca2ed5013b9e87f81d09bfa908 (patch) | |
tree | 5be17f7e6b5c2dd9e59a9c0fa3942749dcd03ab6 /lib/AST/NestedNameSpecifier.cpp | |
parent | 7865b8e4324378e06f59adb4d60bec26a7d3d584 (diff) |
Use pop_back_val() instead of both back() and pop_back().
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/NestedNameSpecifier.cpp')
-rw-r--r-- | lib/AST/NestedNameSpecifier.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AST/NestedNameSpecifier.cpp b/lib/AST/NestedNameSpecifier.cpp index 79cc21a062..b03c4e09fa 100644 --- a/lib/AST/NestedNameSpecifier.cpp +++ b/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: |