diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-04-14 12:22:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 12:22:03 -0700 |
commit | ec76e9e8922a55b521c8b72ca970c7aee7b6d44a (patch) | |
tree | 591886b453a72149435ca4777d4c122227ce4ea0 | |
parent | 9ee2706337a48c503492d8acb9c4117a017f2b87 (diff) | |
download | binaryen-ec76e9e8922a55b521c8b72ca970c7aee7b6d44a.tar.gz binaryen-ec76e9e8922a55b521c8b72ca970c7aee7b6d44a.tar.bz2 binaryen-ec76e9e8922a55b521c8b72ca970c7aee7b6d44a.zip |
Fix build with a sprinkling of braces (#2766)
-rw-r--r-- | src/wasm/wasm-type.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index 624a42182..d1cdf6a81 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -53,17 +53,17 @@ namespace { std::mutex mutex; std::array<std::vector<Type>, Type::_last_value_type + 1> basicTypes = { - std::vector<Type>{}, - {Type::unreachable}, - {Type::i32}, - {Type::i64}, - {Type::f32}, - {Type::f64}, - {Type::v128}, - {Type::funcref}, - {Type::anyref}, - {Type::nullref}, - {Type::exnref}}; + {{}, + {Type::unreachable}, + {Type::i32}, + {Type::i64}, + {Type::f32}, + {Type::f64}, + {Type::v128}, + {Type::funcref}, + {Type::anyref}, + {Type::nullref}, + {Type::exnref}}}; // Track unique_ptrs for constructed types to avoid leaks std::vector<std::unique_ptr<std::vector<Type>>> constructedTypes; |