mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
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).
This commit is contained in:
parent
381baf783d
commit
8a86c8d48b
1 changed files with 1 additions and 1 deletions
|
@ -952,7 +952,7 @@ private:
|
||||||
// Can't assign to the constant predicate.
|
// Can't assign to the constant predicate.
|
||||||
ASSERT(pred != static_cast<u64>(Pred::UnusedIndex));
|
ASSERT(pred != static_cast<u64>(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 + ';');
|
shader.AddLine(variable + " = " + value + ';');
|
||||||
declr_predicates.insert(std::move(variable));
|
declr_predicates.insert(std::move(variable));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue