summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/condition.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/condition.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/shader_recompiler/frontend/ir/condition.cpp b/src/shader_recompiler/frontend/ir/condition.cpp
index edff35dc7..ec1659e2b 100644
--- a/src/shader_recompiler/frontend/ir/condition.cpp
+++ b/src/shader_recompiler/frontend/ir/condition.cpp
@@ -16,15 +16,13 @@ std::string NameOf(Condition condition) {
16 ret = fmt::to_string(condition.FlowTest()); 16 ret = fmt::to_string(condition.FlowTest());
17 } 17 }
18 const auto [pred, negated]{condition.Pred()}; 18 const auto [pred, negated]{condition.Pred()};
19 if (pred != Pred::PT || negated) { 19 if (!ret.empty()) {
20 if (!ret.empty()) { 20 ret += '&';
21 ret += '&';
22 }
23 if (negated) {
24 ret += '!';
25 }
26 ret += fmt::to_string(pred);
27 } 21 }
22 if (negated) {
23 ret += '!';
24 }
25 ret += fmt::to_string(pred);
28 return ret; 26 return ret;
29} 27}
30 28