diff options
Diffstat (limited to 'src/tools/wasm-metadce.cpp')
-rw-r--r-- | src/tools/wasm-metadce.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/wasm-metadce.cpp b/src/tools/wasm-metadce.cpp index a6f5bb012..c87da8c9a 100644 --- a/src/tools/wasm-metadce.cpp +++ b/src/tools/wasm-metadce.cpp @@ -230,8 +230,9 @@ struct MetaDCEGraph { MetaDCEGraph* parent; void handleGlobal(Name name) { - if (!getFunction()) + if (!getFunction()) { return; // non-function stuff (initializers) are handled separately + } Name dceName; if (!getModule()->getGlobal(name)->imported()) { // its a global @@ -465,8 +466,9 @@ int main(int argc, const char* argv[]) { Module wasm; { - if (options.debug) + if (options.debug) { std::cerr << "reading...\n"; + } ModuleReader reader; reader.setDebug(options.debug); |