summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/wasm-metadce.cpp2
-rw-r--r--src/wasm/wasm-binary.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/wasm-metadce.cpp b/src/tools/wasm-metadce.cpp
index 879919c84..35fbc6357 100644
--- a/src/tools/wasm-metadce.cpp
+++ b/src/tools/wasm-metadce.cpp
@@ -353,7 +353,7 @@ public:
std::cout << " is function " << DCENodeToFunction[name] << '\n';
}
if (DCENodeToGlobal.find(name) != DCENodeToGlobal.end()) {
- std::cout << " is function " << DCENodeToGlobal[name] << '\n';
+ std::cout << " is global " << DCENodeToGlobal[name] << '\n';
}
for (auto target : node.reaches) {
std::cout << " reaches: " << target.str << '\n';
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;