diff options
author | Lioncash <mathew1800@gmail.com> | 2020-04-17 04:36:33 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-04-17 04:45:44 +0200 |
commit | 678ac54749650a81b5c190dab6c1930de2fd8b49 (patch) | |
tree | 68bcc2fd90d0e836f99d0a4a8373dff9c704d549 /src | |
parent | decode/texture: Resolve unused variable warnings. (diff) | |
download | yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.tar yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.tar.gz yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.tar.bz2 yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.tar.lz yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.tar.xz yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.tar.zst yuzu-678ac54749650a81b5c190dab6c1930de2fd8b49.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/shader/decode/memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp index 8112ead3e..9392f065b 100644 --- a/src/video_core/shader/decode/memory.cpp +++ b/src/video_core/shader/decode/memory.cpp @@ -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))); 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; usage.is_written |= is_write; usage.is_read |= is_read; |