summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 4ea8aa7f6..f9a514d23 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -3152,7 +3152,7 @@ namespace Slang
// that represents the explicit tag for this case.
if(auto initExpr = decl->tagExpr)
{
- initExpr = CheckExpr(initExpr);
+ initExpr = CheckTerm(initExpr);
initExpr = coerce(tagType, initExpr);
// We want to enforce that this is an integer constant
@@ -3919,7 +3919,7 @@ namespace Slang
// We must check the expression and coerce it to the
// actual type of the parameter.
//
- initExpr = CheckExpr(initExpr);
+ initExpr = CheckTerm(initExpr);
initExpr = coerce(typeExpr.type, initExpr);
paramDecl->initExpr = initExpr;