diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/translate-to-fuzz.h | 14 | ||||
-rw-r--r-- | src/wasm/wasm-s-parser.cpp | 1 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/tools/translate-to-fuzz.h b/src/tools/translate-to-fuzz.h index 0d2eb47f3..95f2ee79e 100644 --- a/src/tools/translate-to-fuzz.h +++ b/src/tools/translate-to-fuzz.h @@ -639,9 +639,17 @@ private: } } switch (conditions) { - case 0: if (!oneIn(4)) continue; - case 1: if (!oneIn(2)) continue; - default: if (oneIn(conditions + 1)) continue; + case 0: { + if (!oneIn(4)) continue; + break; + } + case 1: { + if (!oneIn(2)) continue; + break; + } + default: { + if (oneIn(conditions + 1)) continue; + } } return builder.makeBreak(name); } diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index a95b551ea..b8419ad54 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -874,6 +874,7 @@ Expression* SExpressionWasmBuilder::makeExpression(Element& s) { } case 'w': { if (!strncmp(str, "wake", strlen("wake"))) return makeAtomicWake(s); + abort_on(str); } default: abort_on(str); } |