summaryrefslogtreecommitdiff
path: root/src/wasm-validator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-validator.h')
-rw-r--r--src/wasm-validator.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wasm-validator.h b/src/wasm-validator.h
index b9ad30c73..066ab57da 100644
--- a/src/wasm-validator.h
+++ b/src/wasm-validator.h
@@ -312,7 +312,12 @@ public:
void doWalkFunction(Function* func) {
PostWalker<WasmValidator, Visitor<WasmValidator>>::doWalkFunction(func);
- shouldBeTrue(breakTypes.size() == 0, "break targets", "all break targets must be valid");
+ if (!shouldBeTrue(breakTypes.size() == 0, "break targets", "all break targets must be valid")) {
+ for (auto& target : breakTypes) {
+ std::cerr << " - " << target.first << '\n';
+ }
+ breakTypes.clear();
+ }
}
private: