summaryrefslogtreecommitdiff
path: root/idlc/source/astexpression.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-26 22:22:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-28 08:12:13 +0200
commit6b3feb91b8c0d78e49c0b0bcb969879c980505be (patch)
tree93beb1e29bba6572665cca0d15a0e6111b1b4101 /idlc/source/astexpression.cxx
parent2b19fd857043c6c6b5150b71ab42361494172d5e (diff)
AstExpression::coerce is always called with bAssign = true
Change-Id: I883b8319fde0bd3cc65efe64eb2faf53e2344cfc
Diffstat (limited to 'idlc/source/astexpression.cxx')
-rw-r--r--idlc/source/astexpression.cxx5
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;
}