mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
decode/memory: Resolve unused variable warning
Only the first element of the returned pair is ever used.
This commit is contained in:
parent
d159643fd7
commit
678ac54749
@ -479,7 +479,7 @@ std::tuple<Node, Node, GlobalMemoryBase> ShaderIR::TrackGlobalMemory(NodeBlock&
|
|||||||
bb.push_back(Comment(fmt::format("Base address is c[0x{:x}][0x{:x}]", index, offset)));
|
bb.push_back(Comment(fmt::format("Base address is c[0x{:x}][0x{:x}]", index, offset)));
|
||||||
|
|
||||||
const GlobalMemoryBase descriptor{index, offset};
|
const GlobalMemoryBase descriptor{index, offset};
|
||||||
const auto& [entry, is_new] = used_global_memory.try_emplace(descriptor);
|
const auto& entry = used_global_memory.try_emplace(descriptor).first;
|
||||||
auto& usage = entry->second;
|
auto& usage = entry->second;
|
||||||
usage.is_written |= is_write;
|
usage.is_written |= is_write;
|
||||||
usage.is_read |= is_read;
|
usage.is_read |= is_read;
|
||||||
|
Loading…
Reference in New Issue
Block a user