Index: src/wasm/function-body-decoder.cc |
diff --git a/src/wasm/function-body-decoder.cc b/src/wasm/function-body-decoder.cc |
index d2f6fcf93878ac031d777ca17ba1c11aebad558f..00612b8fde5ef0ccce3eb1b072a18e2f9ef0b2cb 100644 |
--- a/src/wasm/function-body-decoder.cc |
+++ b/src/wasm/function-body-decoder.cc |
@@ -684,6 +684,10 @@ class WasmFullDecoder : public WasmDecoder { |
CHECK_PROTOTYPE_OPCODE(wasm_eh_prototype); |
Value value = Pop(0, kWasmI32); |
BUILD(Throw, value.node); |
+ // TODO(titzer): Throw should end control, but currently we build a |
+ // (reachable) runtime call instead of connecting it directly to |
+ // end. |
+ // EndControl(); |
break; |
} |
case kExprTry: { |
@@ -953,6 +957,7 @@ class WasmFullDecoder : public WasmDecoder { |
ssa_env_ = break_env; |
} |
len = 1 + iterator.length(); |
+ EndControl(); |
break; |
} |
case kExprReturn: { |