Browse Source

video_core/ast: Unindent most of IsFullyDecompiled() by one level

pull/15/merge
Lioncash 6 years ago
parent
commit
d82b181d44
  1. 24
      src/video_core/shader/ast.h

24
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 {

Loading…
Cancel
Save