Use pop_back() instead of pop_back_val() when the returned value is not used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakub Staszak 2013-08-08 15:48:46 +00:00
parent cee3538233
commit 91955e78e7

View File

@ -80,7 +80,7 @@ private:
PostfixStack.push_back(std::make_pair(Op, Val)); PostfixStack.push_back(std::make_pair(Op, Val));
} }
void popOperator() { InfixOperatorStack.pop_back_val(); } void popOperator() { InfixOperatorStack.pop_back(); }
void pushOperator(InfixCalculatorTok Op) { void pushOperator(InfixCalculatorTok Op) {
// Push the new operator if the stack is empty. // Push the new operator if the stack is empty.
if (InfixOperatorStack.empty()) { if (InfixOperatorStack.empty()) {
@ -118,12 +118,12 @@ private:
if (StackOp == IC_RPAREN) { if (StackOp == IC_RPAREN) {
++ParenCount; ++ParenCount;
InfixOperatorStack.pop_back_val(); InfixOperatorStack.pop_back();
} else if (StackOp == IC_LPAREN) { } else if (StackOp == IC_LPAREN) {
--ParenCount; --ParenCount;
InfixOperatorStack.pop_back_val(); InfixOperatorStack.pop_back();
} else { } else {
InfixOperatorStack.pop_back_val(); InfixOperatorStack.pop_back();
PostfixStack.push_back(std::make_pair(StackOp, 0)); PostfixStack.push_back(std::make_pair(StackOp, 0));
} }
} }