mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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:
parent
cee3538233
commit
91955e78e7
@ -80,7 +80,7 @@ private:
|
||||
PostfixStack.push_back(std::make_pair(Op, Val));
|
||||
}
|
||||
|
||||
void popOperator() { InfixOperatorStack.pop_back_val(); }
|
||||
void popOperator() { InfixOperatorStack.pop_back(); }
|
||||
void pushOperator(InfixCalculatorTok Op) {
|
||||
// Push the new operator if the stack is empty.
|
||||
if (InfixOperatorStack.empty()) {
|
||||
@ -118,12 +118,12 @@ private:
|
||||
|
||||
if (StackOp == IC_RPAREN) {
|
||||
++ParenCount;
|
||||
InfixOperatorStack.pop_back_val();
|
||||
InfixOperatorStack.pop_back();
|
||||
} else if (StackOp == IC_LPAREN) {
|
||||
--ParenCount;
|
||||
InfixOperatorStack.pop_back_val();
|
||||
InfixOperatorStack.pop_back();
|
||||
} else {
|
||||
InfixOperatorStack.pop_back_val();
|
||||
InfixOperatorStack.pop_back();
|
||||
PostfixStack.push_back(std::make_pair(StackOp, 0));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user