diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-05 14:50:00 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-05 15:14:27 +0200 |
commit | d82b181d445441ce84612c38d748d3d5a6f8854c (patch) | |
tree | aa826189d515d47bec81becd2a6748eaf6b92fec /src/video_core/shader/ast.h | |
parent | video_core/ast: Make ShowCurrentState() take a string_view instead of std::string (diff) | |
download | yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.gz yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.bz2 yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.lz yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.xz yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.tar.zst yuzu-d82b181d445441ce84612c38d748d3d5a6f8854c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/ast.h | 24 |
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: 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 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; } + return true; } ASTNode GetProgram() const { |