Add some more explicit moves required in some compiler and boost version combinations.

This commit is contained in:
chriseth 2019-02-04 15:50:20 +01:00
parent cd8cf7745b
commit 11969cd760
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);