diff options
| author | 2019-10-05 08:46:54 -0400 | |
|---|---|---|
| committer | 2019-10-05 09:14:26 -0400 | |
| commit | 3c54edae2438bd0dced6c552b42ff2be4eebd6b6 (patch) | |
| tree | 97da4e4a42b0fd90397b244c041e2c35330f6148 /src | |
| parent | video_core/ast: Replace std::string with a constexpr std::string_view (diff) | |
| download | yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.gz yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.tar.xz yuzu-3c54edae2438bd0dced6c552b42ff2be4eebd6b6.zip | |
video_core/ast: Eliminate variable shadowing warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/ast.cpp | 6 |
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() { | |||
| 468 | } | 468 | } |
| 469 | labels.clear(); | 469 | labels.clear(); |
| 470 | } else { | 470 | } else { |
| 471 | auto it = labels.begin(); | 471 | auto label_it = labels.begin(); |
| 472 | while (it != labels.end()) { | 472 | while (label_it != labels.end()) { |
| 473 | bool can_remove = true; | 473 | bool can_remove = true; |
| 474 | ASTNode label = *it; | 474 | ASTNode label = *label_it; |
| 475 | for (const ASTNode& goto_node : gotos) { | 475 | for (const ASTNode& goto_node : gotos) { |
| 476 | const auto label_index = goto_node->GetGotoLabel(); | 476 | const auto label_index = goto_node->GetGotoLabel(); |
| 477 | if (!label_index) { | 477 | if (!label_index) { |