summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-05 14:46:54 +0200
committerLioncash <mathew1800@gmail.com>2019-10-05 15:14:26 +0200
commit3c54edae2438bd0dced6c552b42ff2be4eebd6b6 (patch)
tree97da4e4a42b0fd90397b244c041e2c35330f6148 /src/video_core
parentvideo_core/ast: Replace std::string with a constexpr std::string_view (diff)
downloadyuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar
yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.gz
yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.bz2
yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.lz
yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.xz
yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.zst
yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/ast.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index f2ab0cc00..6eba78025 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -468,10 +468,10 @@ void ASTManager::Decompile() {
}
labels.clear();
} else {
- auto it = labels.begin();
- while (it != labels.end()) {
+ auto label_it = labels.begin();
+ while (label_it != labels.end()) {
bool can_remove = true;
- ASTNode label = *it;
+ ASTNode label = *label_it;
for (const ASTNode& goto_node : gotos) {
const auto label_index = goto_node->GetGotoLabel();
if (!label_index) {