diff options
| author | Yong He <yonghe@outlook.com> | 2019-04-16 07:46:02 -0700 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-04-16 07:46:02 -0700 |
| commit | a81efa750f093fdbfcf28c5d9bd619fca119bcde (patch) | |
| tree | 2c23ef1416f377b1939e6e8fb33075d53a9b05b5 /source/slang/type-layout.cpp | |
| parent | 7c82ead1f5a7f866abe4e8fa931f857a505c3077 (diff) | |
Add the missing case for `AssocTypeDecl` in varying parameters' layout generation. (#947)
Diffstat (limited to 'source/slang/type-layout.cpp')
| -rw-r--r-- | source/slang/type-layout.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/type-layout.cpp b/source/slang/type-layout.cpp index ce767fc8b..90acf0d3c 100644 --- a/source/slang/type-layout.cpp +++ b/source/slang/type-layout.cpp @@ -2784,6 +2784,13 @@ static TypeLayoutResult _createTypeLayout( return TypeLayoutResult(genParamTypeLayout, info); } + else if (auto assocTypeParam = declRef.as<AssocTypeDecl>()) + { + return createSimpleTypeLayout( + SimpleLayoutInfo(), + type, + rules); + } else if( auto simpleGenericParam = declRef.as<GenericTypeParamDecl>() ) { // A bare generic type parameter can come up during layout |
