diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-07 06:50:12 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-07 06:51:03 +0100 |
commit | 7234f436aa0482a3e7b6a55121511d4199f87967 (patch) | |
tree | 6a679a3942c9ac32df6bc3d3a7837e5f5cdba88a /src/video_core/shader/shader_ir.cpp | |
parent | Merge pull request #5147 from comex/xx-purevirt (diff) | |
download | yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.tar yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.tar.gz yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.tar.bz2 yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.tar.lz yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.tar.xz yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.tar.zst yuzu-7234f436aa0482a3e7b6a55121511d4199f87967.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.cpp | 4 |
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 879088a27..5815e68c9 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; } |