summaryrefslogtreecommitdiff
path: root/src/wasm-type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r--src/wasm-type.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h
index 7b63adf9d..99194b81d 100644
--- a/src/wasm-type.h
+++ b/src/wasm-type.h
@@ -356,6 +356,7 @@ public:
// Get the recursion group for this non-basic type.
RecGroup getRecGroup() const;
+ size_t getRecGroupIndex() const;
constexpr TypeID getID() const { return id; }
constexpr BasicHeapType getBasic() const {
@@ -392,8 +393,8 @@ class RecGroup {
public:
explicit RecGroup(uintptr_t id) : id(id) {}
- bool operator==(const RecGroup& other) { return id == other.id; }
- bool operator!=(const RecGroup& other) { return id != other.id; }
+ bool operator==(const RecGroup& other) const { return id == other.id; }
+ bool operator!=(const RecGroup& other) const { return id != other.id; }
size_t size() const;
struct Iterator : ParentIndexIterator<const RecGroup*, Iterator> {