From ff7c46a11787ca6ecebf0a224772a41efef33fc0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 5 Nov 2017 05:49:42 -0500 Subject: small cleanups --- source/slang/check.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/check.cpp') 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(); + if (!structTypeDecl) + return false; //TODO: What do we do if type is a generic specialization? // i.e. if the struct defines typedef Generic T; // how to check if T satisfies the associatedtype constraints? -- cgit v1.2.3