Browse Source
Merge pull request #5159 from lioncash/move-amend
shader_ir: std::move node within DeclareAmend()
pull/15/merge
Rodrigo Locatti
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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; |
|
|
|
} |
|
|
|
|
|
|
|
|