diff options
Diffstat (limited to 'src/sksl/ir/SkSLPrefixExpression.h')
-rw-r--r-- | src/sksl/ir/SkSLPrefixExpression.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sksl/ir/SkSLPrefixExpression.h b/src/sksl/ir/SkSLPrefixExpression.h index 6138bb523b..b7db99a0a4 100644 --- a/src/sksl/ir/SkSLPrefixExpression.h +++ b/src/sksl/ir/SkSLPrefixExpression.h @@ -21,12 +21,7 @@ struct PrefixExpression : public Expression { , fOperand(std::move(operand)) , fOperator(op) {} - bool hasSideEffects() const override { - return fOperator == Token::PLUSPLUS || fOperator == Token::MINUSMINUS || - fOperand->hasSideEffects(); - } - - SkString description() const override { + virtual SkString description() const override { return Token::OperatorName(fOperator) + fOperand->description(); } |