summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-12-07 08:58:01 +0100
committerGitHub <noreply@github.com>2020-12-07 08:58:01 +0100
commit12f3b13995e284319389ece1f9c054d7c5600b7e (patch)
tree2dbf6474adce3ec8bacce3c21ed2cdd2fa9ede7e /src/video_core/shader
parentMerge pull request #5160 from lioncash/buffer-header (diff)
parentshader_ir: std::move node within DeclareAmend() (diff)
downloadyuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.tar
yuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.tar.gz
yuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.tar.bz2
yuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.tar.lz
yuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.tar.xz
yuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.tar.zst
yuzu-12f3b13995e284319389ece1f9c054d7c5600b7e.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/shader_ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp
index e1ab3e6e0..a4987ffc6 100644
--- a/src/video_core/shader/shader_ir.cpp
+++ b/src/video_core/shader/shader_ir.cpp
@@ -452,8 +452,8 @@ void ShaderIR::MarkAttributeUsage(Attribute::Index index, u64 element) {
}
std::size_t ShaderIR::DeclareAmend(Node new_amend) {
- const std::size_t id = amend_code.size();
- amend_code.push_back(new_amend);
+ const auto id = amend_code.size();
+ amend_code.push_back(std::move(new_amend));
return id;
}