aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/frontends
diff options
context:
space:
mode:
authorPierre Moreau <[email protected]>2020-05-07 10:38:48 +0200
committerMarge Bot <[email protected]>2020-05-21 10:58:05 +0000
commit8635c28a9264e24e5f0b64e68af31024945cda98 (patch)
treef442d1de822de80872a180b876b877969513e63b /src/gallium/frontends
parent15a27ed73b2df959b095b9e4e8413e77ee55ef30 (diff)
clover: Address unnecessary copy warnings
Signed-off-by: Pierre Moreau <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4943>
Diffstat (limited to 'src/gallium/frontends')
-rw-r--r--src/gallium/frontends/clover/llvm/util.hpp2
-rw-r--r--src/gallium/frontends/clover/util/functional.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/frontends/clover/llvm/util.hpp b/src/gallium/frontends/clover/llvm/util.hpp
index 02e73e65071..c3c8890fd07 100644
--- a/src/gallium/frontends/clover/llvm/util.hpp
+++ b/src/gallium/frontends/clover/llvm/util.hpp
@@ -37,7 +37,7 @@ namespace clover {
template<typename E> void
fail(std::string &r_log, E &&e, const std::string &s) {
r_log += s;
- throw e;
+ throw std::forward<E>(e);
}
inline std::vector<std::string>
diff --git a/src/gallium/frontends/clover/util/functional.hpp b/src/gallium/frontends/clover/util/functional.hpp
index fc281c5c79a..bf374c6b199 100644
--- a/src/gallium/frontends/clover/util/functional.hpp
+++ b/src/gallium/frontends/clover/util/functional.hpp
@@ -266,7 +266,7 @@ namespace clover {
S
operator()(S &&it) const {
std::advance(it, n);
- return it;
+ return std::forward<S>(it);
}
private: