mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add some more explicit moves required in some compiler and boost version combinations.
This commit is contained in:
parent
cd8cf7745b
commit
11969cd760
@ -38,7 +38,7 @@ void ForLoopInitRewriter::operator()(Block& _block)
|
|||||||
vector<Statement> rewrite;
|
vector<Statement> rewrite;
|
||||||
swap(rewrite, forLoop.pre.statements);
|
swap(rewrite, forLoop.pre.statements);
|
||||||
rewrite.emplace_back(move(forLoop));
|
rewrite.emplace_back(move(forLoop));
|
||||||
return rewrite;
|
return std::move(rewrite);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ void SSATransform::operator()(Block& _block)
|
|||||||
varDecl.value
|
varDecl.value
|
||||||
));
|
));
|
||||||
v.emplace_back(move(varDecl));
|
v.emplace_back(move(varDecl));
|
||||||
return v;
|
return std::move(v);
|
||||||
}
|
}
|
||||||
else if (_s.type() == typeid(Assignment))
|
else if (_s.type() == typeid(Assignment))
|
||||||
{
|
{
|
||||||
@ -115,7 +115,7 @@ void SSATransform::operator()(Block& _block)
|
|||||||
assignment.value
|
assignment.value
|
||||||
));
|
));
|
||||||
v.emplace_back(move(assignment));
|
v.emplace_back(move(assignment));
|
||||||
return v;
|
return std::move(v);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
visit(_s);
|
visit(_s);
|
||||||
|
Loading…
Reference in New Issue
Block a user