diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-12-08 01:55:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 01:55:51 +0100 |
commit | 3415890dd5c6539a7c7b6e02bf7ce5df4533133c (patch) | |
tree | d8293d5f1997e2b59d79d5bfcc629b736565ac13 /src/video_core/renderer_opengl/gl_arb_decompiler.cpp | |
parent | Merge pull request #5163 from lioncash/concat (diff) | |
parent | video_core: Make use of ordered container contains() where applicable (diff) | |
download | yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.gz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.bz2 yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.lz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.xz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.zst yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_arb_decompiler.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_arb_decompiler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp index 78066cc63..3e4d88c30 100644 --- a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp @@ -1485,9 +1485,7 @@ void ARBDecompiler::Exit() { } const auto safe_get_register = [this](u32 reg) -> std::string { - // TODO(Rodrigo): Replace with contains once C++20 releases - const auto& used_registers = ir.GetRegisters(); - if (used_registers.find(reg) != used_registers.end()) { + if (ir.GetRegisters().contains(reg)) { return fmt::format("R{}.x", reg); } return "{0, 0, 0, 0}.x"; |