summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm-s-parser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index b6a532790..36dacc627 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -52,7 +52,7 @@ int unhex(char c) {
//
class Element {
- typedef std::vector<Element*> List;
+ typedef ArenaVector<Element*> List;
bool isList_;
List list_;
@@ -60,8 +60,7 @@ class Element {
bool dollared_;
public:
- Element() : isList_(true) {}
- Element(MixedArena& allocator) : Element() {}
+ Element(MixedArena& allocator) : isList_(true), list_(allocator) {}
bool isList() { return isList_; }
bool isStr() { return !isList_; }