summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index bf7950310..a00b1bea2 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -2785,6 +2785,9 @@ namespace Slang
Expr* SemanticsExprVisitor::visitTypeCastExpr(TypeCastExpr * expr)
{
+ if (expr->type)
+ return expr;
+
// Check the term we are applying first
auto funcExpr = expr->functionExpr;
funcExpr = CheckTerm(funcExpr);