diff options
| author | Yong He <yonghe@outlook.com> | 2022-09-01 11:14:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-01 11:14:59 -0700 |
| commit | 174048f26c147e31a6f72907a3af5dfafeedb877 (patch) | |
| tree | f04060773aa325399edecffb48f7dbef234d725d /source | |
| parent | 1f3130055956dbe441f7fc6849b189624a05f7df (diff) | |
Small fix to enable generic typealias. (#2391)
* Small fix to enable generic typealias.
* Fix.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index d9080169a..31472e878 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -8119,6 +8119,10 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo> { return ensureDecl(context, interfaceDecl); } + else if (auto typedefDecl = as<TypeDefDecl>(genDecl->inner)) + { + return ensureDecl(context, typedefDecl); + } SLANG_RELEASE_ASSERT(false); UNREACHABLE_RETURN(LoweredValInfo()); } |
