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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index 242a4b5a9..65c06ab6f 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -705,7 +705,7 @@ private:
ret->list.push_back(parseExpression(s[i]));
}
labelStack.pop_back();
- ret->type = ret->list.back()->type;
+ if (ret->list.size() > 0) ret->type = ret->list.back()->type;
return ret;
}