Browse Source

video_core/ast: Eliminate variable shadowing warnings

nce_cpp
Lioncash 6 years ago
parent
commit
b1178c30cf
  1. 6
      src/video_core/shader/ast.cpp

6
src/video_core/shader/ast.cpp

@ -468,10 +468,10 @@ void ASTManager::Decompile() {
} }
labels.clear(); labels.clear();
} else { } else {
auto it = labels.begin();
while (it != labels.end()) {
auto label_it = labels.begin();
while (label_it != labels.end()) {
bool can_remove = true; bool can_remove = true;
ASTNode label = *it;
ASTNode label = *label_it;
for (const ASTNode& goto_node : gotos) { for (const ASTNode& goto_node : gotos) {
const auto label_index = goto_node->GetGotoLabel(); const auto label_index = goto_node->GetGotoLabel();
if (!label_index) { if (!label_index) {

Loading…
Cancel
Save