diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-07 14:26:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-07 14:26:37 -0700 |
| commit | 643aaa13d2c6e0c4994437aa9fba6716787608ce (patch) | |
| tree | 279794cfafecc89f0be133d2a81750d59d9ee94a /source/slang/slang-check-impl.h | |
| parent | fb6605c2a7bc17d3b3b79dabd07e1f05267eb33a (diff) | |
Make DeclRefBase a Val, and DeclRef<T> a helper class. (#2967)
* Make DeclRefBase a Val, and DeclRef<T> a helper class.
* Fixes.
* Workaround gcc parser issue.
* Revert NodeOperand change.
* Fix.
* Fix clang incomplete class complains.
* Fix code review.
* Small cleanups and improvements.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-impl.h')
| -rw-r--r-- | source/slang/slang-check-impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-check-impl.h b/source/slang/slang-check-impl.h index e710f93ec..0a99fcb97 100644 --- a/source/slang/slang-check-impl.h +++ b/source/slang/slang-check-impl.h @@ -172,7 +172,7 @@ namespace Slang // Look at a candidate definition to be called and // see if it gives us a key to work with. // - Decl* funcDecl = item.declRef.decl; + Decl* funcDecl = item.declRef.getDecl(); if (auto genDecl = as<GenericDecl>(funcDecl)) funcDecl = genDecl->inner; @@ -707,9 +707,9 @@ namespace Slang void ensureDecl(Decl* decl, DeclCheckState state, SemanticsContext* baseContext = nullptr); /// Helper routine allowing `ensureDecl` to be called on a `DeclRef` - void ensureDecl(DeclRefBase const& declRef, DeclCheckState state) + void ensureDecl(DeclRefBase* declRef, DeclCheckState state) { - ensureDecl(declRef.getDecl(), state); + ensureDecl(declRef->getDecl(), state); } /// Helper routine allowing `ensureDecl` to be used on a `DeclBase` |
