mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-26 07:47:54 +00:00
video_core/ast: Unindent most of IsFullyDecompiled() by one level
This commit is contained in:
parent
6c41d1cd7e
commit
d82b181d44
1 changed files with 13 additions and 13 deletions
|
@ -340,20 +340,20 @@ public:
|
||||||
|
|
||||||
bool IsFullyDecompiled() const {
|
bool IsFullyDecompiled() const {
|
||||||
if (full_decompile) {
|
if (full_decompile) {
|
||||||
return gotos.size() == 0;
|
return gotos.empty();
|
||||||
} 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 {
|
ASTNode GetProgram() const {
|
||||||
|
|
Loading…
Reference in a new issue