diff options
author | Lioncash <mathew1800@gmail.com> | 2020-04-16 22:36:33 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-04-16 22:45:44 -0400 |
commit | 678ac54749650a81b5c190dab6c1930de2fd8b49 (patch) | |
tree | 68bcc2fd90d0e836f99d0a4a8373dff9c704d549 | |
parent | d159643fd780cc8a467822ebd008bb48c2deab7a (diff) |
decode/memory: Resolve unused variable warning
Only the first element of the returned pair is ever used.
-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; |