summaryrefslogtreecommitdiff
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-04 13:41:09 -0800
committerTim Foley <tfoleyNV@users.noreply.github.com>2018-01-04 13:41:09 -0800
commit3d435f7321c3f9241d33a0f7521573f21b548186 (patch)
tree3a4f2d21250f1dbad1ca9bf4668b566a6c87ea89 /source/slang/check.cpp
parente90dfcfd6a0a6d92688012b1216c46c24965cfc0 (diff)
Bug fixes for Slang integration (#356)
* fix #353 * move validateEntryPoint to after all entrypoints has been checked * bug fix: DeclRefType::SubstituteImpl should change ioDiff * bug fix: generic resource usage should have count of 1 instead of 0. * update test case
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index 46ed9da15..ca9e0e7e5 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -6830,7 +6830,7 @@ namespace Slang
entryPoint->genericParameterTypes.Count());
return;
}
- // if number of entry-point type arguments matches parameters, try find
+ // if entry-point type arguments matches parameters, try find
// SubtypeWitness for each argument
int index = 0;
for (auto & gParam : globalGenericParams)
@@ -6871,21 +6871,6 @@ namespace Slang
// checking that is required on all declarations
// in the translation unit.
visitor.checkDecl(translationUnit->SyntaxNode);
-
- // Next, do follow-up validation on any entry
- // points that the user declared via API or
- // command line, to ensure that they meet
- // requirements.
- //
- // Note: We may eventually have syntax to
- // identify entry points via a modifier on
- // declarations, and in this case they should
- // probably get validated as part of orindary
- // checking above.
- for (auto entryPoint : translationUnit->entryPoints)
- {
- validateEntryPoint(entryPoint);
- }
}