cache: fix pessimizing moves

Remove pessimizing moves, as reported by gcc 9.
This commit is contained in:
Avi Kivity
2019-05-07 09:26:20 +03:00
parent c42d59d805
commit 9c7eb95f78

View File

@@ -325,7 +325,7 @@ make_partition_snapshot_flat_reader(schema_ptr s,
if (fwd) {
return make_forwardable(std::move(res)); // FIXME: optimize
} else {
return std::move(res);
return res;
}
}