mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-01 20:25:23 +01:00
Fix declarations hashing
This commit is contained in:
parent
ae7c664016
commit
bb6a3421d2
2 changed files with 19 additions and 1 deletions
|
|
@ -20,6 +20,15 @@ static void WriteSet(Stream& stream, const T& set) {
|
|||
}
|
||||
}
|
||||
|
||||
std::size_t Module::HashOp::operator()(const std::unique_ptr<Op>& op) const noexcept {
|
||||
return op->Hash();
|
||||
}
|
||||
|
||||
bool Module::EqualOp::operator()(const std::unique_ptr<Op>& lhs,
|
||||
const std::unique_ptr<Op>& rhs) const noexcept {
|
||||
return *lhs == *rhs;
|
||||
}
|
||||
|
||||
Module::Module(u32 version) : version(version) {}
|
||||
|
||||
Module::~Module() = default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue