diff options
author | Alon Zakai <azakai@google.com> | 2024-10-01 11:34:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 11:34:39 -0700 |
commit | cb53f0c6966fe7c8e5cc1a975eab9653b5914bde (patch) | |
tree | 5e50d4f57b54accadba1fc2a65bbbb28aeb92c07 /src/wasm-type.h | |
parent | fcd8dfe7ddd1a4a3ce1be40c674fdd60bbec73d1 (diff) | |
download | binaryen-cb53f0c6966fe7c8e5cc1a975eab9653b5914bde.tar.gz binaryen-cb53f0c6966fe7c8e5cc1a975eab9653b5914bde.tar.bz2 binaryen-cb53f0c6966fe7c8e5cc1a975eab9653b5914bde.zip |
[NFC] Move a TypeInfo constructor out of a header (#6979)
Some versions of libcxx or clang error without this, apparently due to
Type being a forward declaration.
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 2 |
1 files changed, 1 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} {} |