diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 528e9c0b0..6c3efbfbe 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -455,6 +455,10 @@ public: } return decIndent(o, indent); } + + void finalize() { + type = body->type; // loop might have a type, if the body ends in something that does not break + } }; class Break : public Expression { |