diff options
Diffstat (limited to 'source/slang/check.cpp')
| -rw-r--r-- | source/slang/check.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp index 79a4f28cf..ed2ed4a1b 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -1662,6 +1662,8 @@ namespace Slang return false; auto structTypeDecl = declRefType->declRef.getDecl()->As<AggTypeDecl>(); + if (!structTypeDecl) + return false; //TODO: What do we do if type is a generic specialization? // i.e. if the struct defines typedef Generic<float> T; // how to check if T satisfies the associatedtype constraints? |
