From d82b181d445441ce84612c38d748d3d5a6f8854c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Oct 2019 08:50:00 -0400 Subject: [PATCH] video_core/ast: Unindent most of IsFullyDecompiled() by one level --- src/video_core/shader/ast.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/video_core/shader/ast.h b/src/video_core/shader/ast.h index 5a77c60cb0..d7bf118216 100644 --- a/src/video_core/shader/ast.h +++ b/src/video_core/shader/ast.h @@ -340,20 +340,20 @@ public: bool IsFullyDecompiled() const { if (full_decompile) { - return gotos.size() == 0; - } else { - for (ASTNode goto_node : gotos) { - auto label_index = goto_node->GetGotoLabel(); - if (!label_index) { - return false; - } - ASTNode glabel = labels[*label_index]; - if (IsBackwardsJump(goto_node, glabel)) { - return false; - } - } - return true; + return gotos.empty(); } + + for (ASTNode goto_node : gotos) { + auto label_index = goto_node->GetGotoLabel(); + if (!label_index) { + return false; + } + ASTNode glabel = labels[*label_index]; + if (IsBackwardsJump(goto_node, glabel)) { + return false; + } + } + return true; } ASTNode GetProgram() const {