summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-17 14:07:00 -0700
committerGitHub <noreply@github.com>2019-05-17 14:07:00 -0700
commita4b7041d3bac69a99048b7e52eba19dc3cad90d9 (patch)
treee7bd75b50c70886cef0b435b6d0a8725ef7b1b30 /src/wasm
parent1a312a848bb20394e4efcba747d32c515d23d215 (diff)
downloadbinaryen-a4b7041d3bac69a99048b7e52eba19dc3cad90d9.tar.gz
binaryen-a4b7041d3bac69a99048b7e52eba19dc3cad90d9.tar.bz2
binaryen-a4b7041d3bac69a99048b7e52eba19dc3cad90d9.zip
Fix misc. things for globals (#2119)
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-binary.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index 7f43a22d9..8d0581312 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -816,10 +816,9 @@ void WasmBinaryBuilder::read() {
case BinaryConsts::Section::Element:
readTableElements();
break;
- case BinaryConsts::Section::Global: {
+ case BinaryConsts::Section::Global:
readGlobals();
break;
- }
case BinaryConsts::Section::Data:
readDataSegments();
break;