Merge pull request #5921 from ethereum/someMoreMoves

Add some more explicit moves required in some compiler and boost vers…
This commit is contained in:
chriseth 2019-02-04 15:58:14 +01:00 committed by GitHub
commit 345aa0105b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ void ForLoopInitRewriter::operator()(Block& _block)
vector<Statement> rewrite;
swap(rewrite, forLoop.pre.statements);
rewrite.emplace_back(move(forLoop));
return rewrite;
return std::move(rewrite);
}
else
{

View File

@ -97,7 +97,7 @@ void SSATransform::operator()(Block& _block)
varDecl.value
));
v.emplace_back(move(varDecl));
return v;
return std::move(v);
}
else if (_s.type() == typeid(Assignment))
{
@ -115,7 +115,7 @@ void SSATransform::operator()(Block& _block)
assignment.value
));
v.emplace_back(move(assignment));
return v;
return std::move(v);
}
else
visit(_s);