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.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/slang/slang-check-stmt.cpp b/source/slang/slang-check-stmt.cpp
index 519ca91ff..bc89dc94e 100644
--- a/source/slang/slang-check-stmt.cpp
+++ b/source/slang/slang-check-stmt.cpp
@@ -585,6 +585,7 @@ namespace Slang
void SemanticsStmtVisitor::checkLoopInDifferentiableFunc(Stmt* stmt)
{
+ SLANG_UNUSED(stmt);
if (getParentDifferentiableAttribute())
{
if (!getParentFunc())
@@ -601,16 +602,6 @@ namespace Slang
return;
if (getParentFunc()->findModifier<BackwardDerivativeAttribute>())
return;
-
- // For all ordinary differentiable functions, we require either a `[MaxIters]` attribute,
- // or a `[ForceUnroll]` attribet on loops.
- if (stmt->hasModifier<MaxItersAttribute>() || stmt->hasModifier<ForceUnrollAttribute>() || stmt->hasModifier<InferredMaxItersAttribute>())
- {
- }
- else
- {
- getSink()->diagnose(stmt, Diagnostics::loopInDiffFuncRequireUnrollOrMaxIters);
- }
}
}