summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-05 08:50:00 -0400
committerGravatar Lioncash2019-10-05 09:14:27 -0400
commitd82b181d445441ce84612c38d748d3d5a6f8854c (patch)
treeaa826189d515d47bec81becd2a6748eaf6b92fec /src
parentvideo_core/ast: Make ShowCurrentState() take a string_view instead of std::st... (diff)
downloadyuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.gz
yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.xz
yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.zip
video_core/ast: Unindent most of IsFullyDecompiled() by one level
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/ast.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/video_core/shader/ast.h b/src/video_core/shader/ast.h
index 5a77c60cb..d7bf11821 100644
--- a/src/video_core/shader/ast.h
+++ b/src/video_core/shader/ast.h
@@ -340,20 +340,20 @@ public:
340 340
341 bool IsFullyDecompiled() const { 341 bool IsFullyDecompiled() const {
342 if (full_decompile) { 342 if (full_decompile) {
343 return gotos.size() == 0; 343 return gotos.empty();
344 } else { 344 }
345 for (ASTNode goto_node : gotos) { 345
346 auto label_index = goto_node->GetGotoLabel(); 346 for (ASTNode goto_node : gotos) {
347 if (!label_index) { 347 auto label_index = goto_node->GetGotoLabel();
348 return false; 348 if (!label_index) {
349 } 349 return false;
350 ASTNode glabel = labels[*label_index]; 350 }
351 if (IsBackwardsJump(goto_node, glabel)) { 351 ASTNode glabel = labels[*label_index];
352 return false; 352 if (IsBackwardsJump(goto_node, glabel)) {
353 } 353 return false;
354 } 354 }
355 return true;
356 } 355 }
356 return true;
357 } 357 }
358 358
359 ASTNode GetProgram() const { 359 ASTNode GetProgram() const {