diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-21 20:11:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 20:11:18 +0200 |
commit | 9bf3abcb63003e1f6cb911270a88cda761f63525 (patch) | |
tree | c633d54ee61e75888ce227720d576b7c0d3cf7e5 /src/video_core/shader/decode/memory.cpp | |
parent | Merge pull request #3724 from bunnei/fix-unicorn (diff) | |
parent | key_manager: Resolve missing field initializer warning (diff) | |
download | yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.tar yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.tar.gz yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.tar.bz2 yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.tar.lz yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.tar.xz yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.tar.zst yuzu-9bf3abcb63003e1f6cb911270a88cda761f63525.zip |
Diffstat (limited to 'src/video_core/shader/decode/memory.cpp')
-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; |