summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-stmt.cpp')
-rw-r--r--source/slang/slang-check-stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check-stmt.cpp b/source/slang/slang-check-stmt.cpp
index 45be1d662..57bb3b85a 100644
--- a/source/slang/slang-check-stmt.cpp
+++ b/source/slang/slang-check-stmt.cpp
@@ -51,7 +51,7 @@ namespace Slang
// local `struct` declaration, where it would have members
// that need to be recursively checked.
//
- ensureDeclBase(stmt->decl, DeclCheckState::Checked);
+ ensureDeclBase(stmt->decl, DeclCheckState::Checked, this);
}
void SemanticsStmtVisitor::visitBlockStmt(BlockStmt* stmt)
@@ -289,7 +289,7 @@ namespace Slang
{
stmt->device = CheckExpr(stmt->device);
stmt->gridDims = CheckExpr(stmt->gridDims);
- ensureDeclBase(stmt->dispatchThreadID, DeclCheckState::Checked);
+ ensureDeclBase(stmt->dispatchThreadID, DeclCheckState::Checked, this);
WithOuterStmt subContext(this, stmt);
stmt->kernelCall = subContext.CheckExpr(stmt->kernelCall);
return;