Explorar o código

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.
Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
e7b39f47f8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/video_core/shader/control_flow.cpp

+ 2 - 2
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};
 }