From a2d90fb275962da84611160f8ddd74d934a68dbd Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 4 Aug 2023 15:47:39 -0700 Subject: Redesign `DeclRef` and systematic `Val` deduplication (#3049) * Redesign DeclRef + Deduplicate Val. * Update project files * Fix warning. * Fix. * Fix. * Remove `Val::_equalsImplOverride`. * Rmove `Val::_getHashCodeOverride`. * Remove `semanticVisitor` param from `resolve`. * Cleanups. --------- Co-authored-by: Yong He --- source/core/slang-array-view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/core/slang-array-view.h') diff --git a/source/core/slang-array-view.h b/source/core/slang-array-view.h index 99609ef69..50270e0a0 100644 --- a/source/core/slang-array-view.h +++ b/source/core/slang-array-view.h @@ -197,6 +197,8 @@ namespace Slang return ThisType(m_buffer + index, m_count - index); } + T& getLast() { return m_buffer[m_count - 1]; } + ArrayView() : Super() {} ArrayView(T* buffer, Index size) :Super(buffer, size) {} }; -- cgit v1.2.3