mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 05:37:32 +01:00
Merge pull request #5159 from lioncash/move-amend
shader_ir: std::move node within DeclareAmend()
This commit is contained in:
commit
12f3b13995
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user