diff options
| author | 2018-10-20 14:25:12 -0400 | |
|---|---|---|
| committer | 2018-10-20 14:25:15 -0400 | |
| commit | 8a86c8d48b7ca8b7c9217938a36720e616a2ebad (patch) | |
| tree | b28a6241329122c70d28497daaffb88c1145c20c | |
| parent | gl_shader_decompiler: Get rid of variable shadowing warnings (diff) | |
| download | yuzu-8a86c8d48b7ca8b7c9217938a36720e616a2ebad.tar.gz yuzu-8a86c8d48b7ca8b7c9217938a36720e616a2ebad.tar.xz yuzu-8a86c8d48b7ca8b7c9217938a36720e616a2ebad.zip | |
gl_shader_decompiler: Allow std::move to function in SetPredicate
If the variable being moved is const, then std::move will always perform
a copy (since it can't actually move the data).
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index f9ef9d194..a88cf8699 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -952,7 +952,7 @@ private: | |||
| 952 | // Can't assign to the constant predicate. | 952 | // Can't assign to the constant predicate. |
| 953 | ASSERT(pred != static_cast<u64>(Pred::UnusedIndex)); | 953 | ASSERT(pred != static_cast<u64>(Pred::UnusedIndex)); |
| 954 | 954 | ||
| 955 | const std::string variable = 'p' + std::to_string(pred) + '_' + suffix; | 955 | std::string variable = 'p' + std::to_string(pred) + '_' + suffix; |
| 956 | shader.AddLine(variable + " = " + value + ';'); | 956 | shader.AddLine(variable + " = " + value + ';'); |
| 957 | declr_predicates.insert(std::move(variable)); | 957 | declr_predicates.insert(std::move(variable)); |
| 958 | } | 958 | } |