summaryrefslogtreecommitdiff
path: root/src/dataflow
diff options
context:
space:
mode:
authorwalkingeyerobot <mitch@thefoley.net>2021-02-16 13:37:16 -0500
committerGitHub <noreply@github.com>2021-02-16 10:37:16 -0800
commita74bc72dbe6fa5f3edacfba160dc4e5d630b99b6 (patch)
tree87ef32b833cb2cae2b2a755eafb4dea407fa8337 /src/dataflow
parent3a368f480bcdc36564650f3c0236818613e5d510 (diff)
downloadbinaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.gz
binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.bz2
binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.zip
cleanup to allow binaryen to be built in more strict environments (#3566)
Diffstat (limited to 'src/dataflow')
-rw-r--r--src/dataflow/node.h4
-rw-r--r--src/dataflow/utils.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/dataflow/node.h b/src/dataflow/node.h
index bb537afc2..a59f01357 100644
--- a/src/dataflow/node.h
+++ b/src/dataflow/node.h
@@ -183,10 +183,12 @@ struct Node {
}
break;
}
- case Cond:
+ case Cond: {
if (index != other.index) {
return false;
}
+ break;
+ }
default: {}
}
if (values.size() != other.values.size()) {
diff --git a/src/dataflow/utils.h b/src/dataflow/utils.h
index 02625212e..1cd93764c 100644
--- a/src/dataflow/utils.h
+++ b/src/dataflow/utils.h
@@ -25,6 +25,7 @@
#ifndef wasm_dataflow_utils_h
#define wasm_dataflow_utils_h
+#include "dataflow/graph.h"
#include "dataflow/node.h"
#include "wasm.h"