summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index afcc8e2ec..719a6598b 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -923,12 +923,7 @@ private:
ret->targets.push_back(curr[1]->str());
}
Element& curr = *s[i];
- if (curr[0]->str() == CASE) {
- ret->default_ = curr[1]->str();
- } else {
- assert(curr[0]->str() == BR);
- assert(curr[1]->str() == ret->name);
- }
+ ret->default_ = curr[1]->str();
i++;
for (; i < s.size(); i++) {
Element& curr = *s[i];