From 3c54edae2438bd0dced6c552b42ff2be4eebd6b6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Oct 2019 08:46:54 -0400 Subject: [PATCH] video_core/ast: Eliminate variable shadowing warnings --- src/video_core/shader/ast.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp index f2ab0cc00a..6eba780252 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) {