summaryrefslogtreecommitdiff
path: root/src/wasm-printing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-printing.h')
-rw-r--r--src/wasm-printing.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-printing.h b/src/wasm-printing.h
index 830f2dda2..a445866d8 100644
--- a/src/wasm-printing.h
+++ b/src/wasm-printing.h
@@ -27,6 +27,7 @@ namespace wasm {
struct WasmPrinter {
static std::ostream& printModule(Module* module, std::ostream& o) {
PassRunner passRunner(module);
+ passRunner.setIsNested(true);
passRunner.add<Printer>(&o);
passRunner.run();
return o;