From a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6 Mon Sep 17 00:00:00 2001 From: walkingeyerobot Date: Tue, 16 Feb 2021 13:37:16 -0500 Subject: cleanup to allow binaryen to be built in more strict environments (#3566) --- src/dataflow/node.h | 4 +++- src/dataflow/utils.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/dataflow') 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" -- cgit v1.2.3