diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-check-conversion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-conversion.cpp b/source/slang/slang-check-conversion.cpp index 705da89e3..fcbc83673 100644 --- a/source/slang/slang-check-conversion.cpp +++ b/source/slang/slang-check-conversion.cpp @@ -246,7 +246,8 @@ bool SemanticsVisitor::isCStyleType(Type* type, HashSet<Type*>& isVisit) // 1. It has to be basic scalar, vector or matrix type, or user-defined struct. if (as<VectorExpressionType>(type) || as<MatrixExpressionType>(type) || - as<BasicExpressionType>(type) || isDeclRefTypeOf<EnumDecl>(type).getDecl()) + as<BasicExpressionType>(type) || isDeclRefTypeOf<EnumDecl>(type).getDecl() || + as<PtrType>(type)) return cacheResult(true); |
