diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-16 11:42:05 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-07-18 21:03:30 -0400 |
commit | e7b39f47f86ee2c3656340b8af7747848ddc1f2e (patch) | |
tree | c0592c2310cb8c2f127a4f64fd1d4061cb015fcb /src | |
parent | 6885e7e7ec4919cd66ee0294fdbd9aea8935c50d (diff) |
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.cpp | 4 |
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 83549c082c..c2243337cf 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) { const auto gather_end = labels.upper_bound(block.end); while (gather_start != gather_end) { cc.push(gather_start->second); - gather_start++; + ++gather_start; } }; if (state.queries.empty()) { @@ -470,7 +470,7 @@ std::optional<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, continue; } back = next; - next++; + ++next; } return {result_out}; } |