diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-05 05:49:42 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-05 05:49:42 -0500 |
| commit | ff7c46a11787ca6ecebf0a224772a41efef33fc0 (patch) | |
| tree | bff41e36c9b6843d83a5ca5e83645310be6687f3 /source/slang/check.cpp | |
| parent | 0d250f0d49e9e29d143c5794671669ea025b357e (diff) | |
small cleanups
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? |
