Merge pull request #5543 from ethereum/fixSortMOve

Fix move bug.
This commit is contained in:
chriseth 2018-11-29 16:13:24 +01:00 committed by GitHub
commit 124a8def84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,9 +136,10 @@ public:
static Expression ite(Expression _condition, Expression _trueValue, Expression _falseValue)
{
solAssert(*_trueValue.sort == *_falseValue.sort, "");
SortPointer sort = _trueValue.sort;
return Expression("ite", std::vector<Expression>{
std::move(_condition), std::move(_trueValue), std::move(_falseValue)
}, _trueValue.sort);
}, std::move(sort));
}
static Expression implies(Expression _a, Expression _b)