diff options
Diffstat (limited to 'source/slang/slang-syntax.h')
| -rw-r--r-- | source/slang/slang-syntax.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-syntax.h b/source/slang/slang-syntax.h index 3ac258f08..52df3a0e0 100644 --- a/source/slang/slang-syntax.h +++ b/source/slang/slang-syntax.h @@ -194,6 +194,8 @@ namespace Slang inline Type* getType(ASTBuilder* astBuilder, SubstExpr<Expr> expr) { + if (!expr) + return astBuilder->getErrorType(); return substituteType(expr.getSubsts(), astBuilder, expr.getExpr()->type); } |
