From 0b54b574ba7227dd7ab60ab32fb2b7947cdecc32 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 4 Nov 2015 11:50:00 -0800 Subject: don't put c++ types in a union if they need a constructor --- src/wasm-s-parser.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index a14809469..09c30ce92 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -32,10 +32,8 @@ class Element { typedef std::vector List; bool isList_; - union { - List list_; - IString str_; - }; + List list_; + IString str_; public: Element() : isList_(true) {} -- cgit v1.2.3