mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix move bug.
This commit is contained in:
parent
6b11ef1887
commit
9e9250c961
@ -136,9 +136,10 @@ public:
|
|||||||
static Expression ite(Expression _condition, Expression _trueValue, Expression _falseValue)
|
static Expression ite(Expression _condition, Expression _trueValue, Expression _falseValue)
|
||||||
{
|
{
|
||||||
solAssert(*_trueValue.sort == *_falseValue.sort, "");
|
solAssert(*_trueValue.sort == *_falseValue.sort, "");
|
||||||
|
SortPointer sort = _trueValue.sort;
|
||||||
return Expression("ite", std::vector<Expression>{
|
return Expression("ite", std::vector<Expression>{
|
||||||
std::move(_condition), std::move(_trueValue), std::move(_falseValue)
|
std::move(_condition), std::move(_trueValue), std::move(_falseValue)
|
||||||
}, _trueValue.sort);
|
}, std::move(sort));
|
||||||
}
|
}
|
||||||
|
|
||||||
static Expression implies(Expression _a, Expression _b)
|
static Expression implies(Expression _a, Expression _b)
|
||||||
|
Loading…
Reference in New Issue
Block a user