summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-01-22 09:22:45 -0800
committerGitHub <noreply@github.com>2021-01-22 09:22:45 -0800
commit76db3366cb6cfb5432e5d26acb67e5a96224900e (patch)
tree32b9b969b99a47c3d5de7bcdf61cf1fbfc724439 /source/core
parentdc063e58ec0d937465566edeea70b112e4d3e72c (diff)
Fix existential specialization of mutable buffer loads. (#1671)
* Fix existential specialization of mutable buffer loads. * fix Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-dictionary.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h
index df5ee520d..4c352d55b 100644
--- a/source/core/slang-dictionary.h
+++ b/source/core/slang-dictionary.h
@@ -1003,7 +1003,17 @@ namespace Slang
};
template <typename T> class OrderedHashSet : public HashSetBase<T, OrderedDictionary<T, _DummyClass>>
- {};
+ {
+ public:
+ T& getLast()
+ {
+ return this->dict.Last().Key;
+ }
+ void removeLast()
+ {
+ this->Remove(getLast());
+ }
+ };
}
#endif