mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Fix -Wpessimizing-move (Clang)
This commit is contained in:
parent
2c18d67769
commit
c8fefc4434
@ -943,7 +943,7 @@ bool GLGSRender::on_access_violation(u32 address, bool is_writing)
|
||||
void GLGSRender::on_invalidate_memory_range(const utils::address_range &range, rsx::invalidation_cause cause)
|
||||
{
|
||||
gl::command_context cmd{ gl_state };
|
||||
auto data = std::move(m_gl_texture_cache.invalidate_range(cmd, range, cause));
|
||||
auto data = m_gl_texture_cache.invalidate_range(cmd, range, cause);
|
||||
AUDIT(data.empty());
|
||||
|
||||
if (cause == rsx::invalidation_cause::unmap && data.violation_handled)
|
||||
|
@ -657,7 +657,7 @@ bool VKGSRender::on_access_violation(u32 address, bool is_writing)
|
||||
std::lock_guard lock(m_secondary_cb_guard);
|
||||
|
||||
const rsx::invalidation_cause cause = is_writing ? rsx::invalidation_cause::deferred_write : rsx::invalidation_cause::deferred_read;
|
||||
result = std::move(m_texture_cache.invalidate_address(m_secondary_command_buffer, address, cause));
|
||||
result = m_texture_cache.invalidate_address(m_secondary_command_buffer, address, cause);
|
||||
}
|
||||
|
||||
if (result.invalidate_samplers)
|
||||
@ -738,7 +738,7 @@ void VKGSRender::on_invalidate_memory_range(const utils::address_range &range, r
|
||||
{
|
||||
std::lock_guard lock(m_secondary_cb_guard);
|
||||
|
||||
auto data = std::move(m_texture_cache.invalidate_range(m_secondary_command_buffer, range, cause));
|
||||
auto data = m_texture_cache.invalidate_range(m_secondary_command_buffer, range, cause);
|
||||
AUDIT(data.empty());
|
||||
|
||||
if (cause == rsx::invalidation_cause::unmap)
|
||||
|
@ -621,7 +621,7 @@ namespace vk
|
||||
else if (!temp)
|
||||
resources.push_back(std::move(tex));
|
||||
else
|
||||
temp_image_cache[key] = std::move(std::make_pair(owner_uid, std::move(tex)));
|
||||
temp_image_cache[key] = std::make_pair(owner_uid, std::move(tex));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ else()
|
||||
add_compile_options(-fconstexpr-steps=16777216)
|
||||
add_compile_options(-Wno-unused-lambda-capture)
|
||||
add_compile_options(-Wno-unused-private-field)
|
||||
add_compile_options(-Wno-pessimizing-move)
|
||||
add_compile_options(-Wno-delete-non-virtual-dtor)
|
||||
add_compile_options(-Wno-unused-command-line-argument)
|
||||
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
Loading…
Reference in New Issue
Block a user