m_exprValue cannot be non-null here

...as, like the other private AstExpression::eval_* functions, eval_un_op is
only called from AstExpression::evaluate if m_exprValue is null

Change-Id: I812ea249d33a72f95b9692dc72ba6631ffbd4884
This commit is contained in:
Stephan Bergmann 2015-09-26 22:55:04 +02:00
parent 84001596c9
commit 1f8723bf91

View File

@ -1002,9 +1002,6 @@ AstExprValue* AstExpression::eval_bit_op()
AstExprValue* AstExpression::eval_un_op()
{
if (m_exprValue != NULL)
return m_exprValue;
if (m_subExpr1 == NULL)
return NULL;
m_subExpr1->evaluate();