From 8a86c8d48b7ca8b7c9217938a36720e616a2ebad Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 20 Oct 2018 14:25:12 -0400 Subject: 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). --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') 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: // Can't assign to the constant predicate. ASSERT(pred != static_cast(Pred::UnusedIndex)); - const std::string variable = 'p' + std::to_string(pred) + '_' + suffix; + std::string variable = 'p' + std::to_string(pred) + '_' + suffix; shader.AddLine(variable + " = " + value + ';'); declr_predicates.insert(std::move(variable)); } -- cgit v1.2.3