summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-shader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
-rw-r--r--source/slang/slang-check-shader.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp
index 025a47c1b..184ff3350 100644
--- a/source/slang/slang-check-shader.cpp
+++ b/source/slang/slang-check-shader.cpp
@@ -1180,8 +1180,6 @@ namespace Slang
auto genericSpecializationParamCount = getGenericSpecializationParamCount();
SLANG_ASSERT(argCount >= genericSpecializationParamCount);
- Result result = SLANG_OK;
-
RefPtr<EntryPointSpecializationInfo> info = new EntryPointSpecializationInfo();
DeclRef<FuncDecl> specializedFuncDeclRef = m_funcDeclRef;
@@ -1226,7 +1224,6 @@ namespace Slang
{
// TODO: diagnose a problem here
sink->diagnose(constraintDecl, Diagnostics::typeArgumentDoesNotConformToInterface, sub, sup);
- result = SLANG_FAIL;
continue;
}
}
@@ -1263,7 +1260,6 @@ namespace Slang
// If no witness was found, then we will be unable to satisfy
// the conformances required.
sink->diagnose(SourceLoc(), Diagnostics::typeArgumentDoesNotConformToInterface, argType, paramType);
- result = SLANG_FAIL;
continue;
}