diff options
author | Karol Herbst <[email protected]> | 2019-09-20 12:43:10 +0200 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-09-25 10:39:58 +0000 |
commit | 2859c49f7b229db4a37b7c10fab739dbc96922cd (patch) | |
tree | 48fc5cd9f25177f217087ee2887a912fc5bb1742 /src | |
parent | f4d9169204e1b83f87779a350dd23501a085b36c (diff) |
clover/llvm: remove harmful std::move call
both clang and gcc warn with:
"moving a local object in a return statement prevents copy elision"
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index d71ddf8b01b..bef334c2d63 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -376,7 +376,7 @@ namespace { throw build_error(); } - return std::move(mod); + return mod; } } |