summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-07-16 11:42:05 -0400
committerGravatar Lioncash2019-07-18 21:03:30 -0400
commite7b39f47f86ee2c3656340b8af7747848ddc1f2e (patch)
treec0592c2310cb8c2f127a4f64fd1d4061cb015fcb /src
parentvideo_core/control_flow: Use empty() member function for checking emptiness (diff)
downloadyuzu-e7b39f47f86ee2c3656340b8af7747848ddc1f2e.tar.gz
yuzu-e7b39f47f86ee2c3656340b8af7747848ddc1f2e.tar.xz
yuzu-e7b39f47f86ee2c3656340b8af7747848ddc1f2e.zip
video_core/control_flow: Use the prefix variant of operator++ for iterators
Same thing, but potentially allows a standard library implementation to pick a more efficient codepath.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/control_flow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp
index 83549c082..c2243337c 100644
--- a/src/video_core/shader/control_flow.cpp
+++ b/src/video_core/shader/control_flow.cpp
@@ -365,7 +365,7 @@ bool TryQuery(CFGRebuildState& state) {
365 const auto gather_end = labels.upper_bound(block.end); 365 const auto gather_end = labels.upper_bound(block.end);
366 while (gather_start != gather_end) { 366 while (gather_start != gather_end) {
367 cc.push(gather_start->second); 367 cc.push(gather_start->second);
368 gather_start++; 368 ++gather_start;
369 } 369 }
370 }; 370 };
371 if (state.queries.empty()) { 371 if (state.queries.empty()) {
@@ -470,7 +470,7 @@ std::optional<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code,
470 continue; 470 continue;
471 } 471 }
472 back = next; 472 back = next;
473 next++; 473 ++next;
474 } 474 }
475 return {result_out}; 475 return {result_out};
476} 476}