Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

video_core/control_flow: Use the prefix variant of operator++ for iterators

Lioncash0d287d355110
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};
}