diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-26 22:22:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-28 08:12:13 +0200 |
commit | 6b3feb91b8c0d78e49c0b0bcb969879c980505be (patch) | |
tree | 93beb1e29bba6572665cca0d15a0e6111b1b4101 /idlc/source | |
parent | Simplify coerce_value signature (diff) | |
download | core-6b3feb91b8c0d78e49c0b0bcb969879c980505be.tar.gz core-6b3feb91b8c0d78e49c0b0bcb969879c980505be.zip |
AstExpression::coerce is always called with bAssign = true
Change-Id: I883b8319fde0bd3cc65efe64eb2faf53e2344cfc
Diffstat (limited to 'idlc/source')
-rw-r--r-- | idlc/source/astexpression.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index 785e2284ad5c..0fec297deee1 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -685,7 +685,7 @@ coerce_value(AstExprValue *ev, ExprType t) } } -AstExprValue* AstExpression::coerce(ExprType t, bool bAssign) +AstExprValue* AstExpression::coerce(ExprType t) { AstExprValue *copy; @@ -753,8 +753,7 @@ AstExprValue* AstExpression::coerce(ExprType t, bool bAssign) copy = nullptr; } - if (bAssign) - m_exprValue = copy; + m_exprValue = copy; return copy; } |