summaryrefslogtreecommitdiff
path: root/src/ir/function-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/function-utils.h')
-rw-r--r--src/ir/function-utils.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ir/function-utils.h b/src/ir/function-utils.h
index 446bcc8bb..61af153a0 100644
--- a/src/ir/function-utils.h
+++ b/src/ir/function-utils.h
@@ -28,18 +28,23 @@ namespace FunctionUtils {
// everything but their name (which can't be the same, in the same
// module!) - same params, vars, body, result, etc.
inline bool equal(Function* left, Function* right) {
- if (left->getNumParams() != right->getNumParams())
+ if (left->getNumParams() != right->getNumParams()) {
return false;
- if (left->getNumVars() != right->getNumVars())
+ }
+ if (left->getNumVars() != right->getNumVars()) {
return false;
+ }
for (Index i = 0; i < left->getNumLocals(); i++) {
- if (left->getLocalType(i) != right->getLocalType(i))
+ if (left->getLocalType(i) != right->getLocalType(i)) {
return false;
+ }
}
- if (left->result != right->result)
+ if (left->result != right->result) {
return false;
- if (left->type != right->type)
+ }
+ if (left->type != right->type) {
return false;
+ }
if (!left->imported() && !right->imported()) {
return ExpressionAnalyzer::equal(left->body, right->body);
}