diff options
-rw-r--r-- | src/wasm-type.h | 2 | ||||
-rw-r--r-- | src/wasm/wasm-type.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 5b2074e1c..d26ba324f 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -280,7 +280,7 @@ struct TypeInfo { Ref ref; }; - TypeInfo(const Tuple& tuple) : kind(TupleKind), tuple(tuple) {} + TypeInfo(const Tuple& tuple); TypeInfo(Tuple&& tuple) : kind(TupleKind), tuple(std::move(tuple)) {} TypeInfo(HeapType heapType, Nullability nullable) : kind(RefKind), ref{heapType, nullable} {} diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index dad8bb669..9bb4f4259 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -479,6 +479,8 @@ std::optional<HeapType> getBasicHeapTypeLUB(HeapType::BasicHeapType a, } // anonymous namespace +TypeInfo::TypeInfo(const Tuple& tuple) : kind(TupleKind), tuple(tuple) {} + TypeInfo::TypeInfo(const TypeInfo& other) { kind = other.kind; switch (kind) { |