summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-layout.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-07 17:28:19 -0800
committerGitHub <noreply@github.com>2024-03-07 17:28:19 -0800
commita810aa31f5f366d69e67be96c169fec7d6041df7 (patch)
tree3c8697241d8f3381720661b6f5d3cdaac7789f5d /source/slang/slang-type-layout.cpp
parent6492906ebe59b573f6243e7c44476944b9dd5592 (diff)
Link-time constant and linkage API improvements. (#3708)
* Link-time constant and linkage API improvements. * Fix. * Allow module name to be empty. * Fix. * Fix. * Fix compile error.
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
-rw-r--r--source/slang/slang-type-layout.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp
index 6b1e2e115..3f49d62d2 100644
--- a/source/slang/slang-type-layout.cpp
+++ b/source/slang/slang-type-layout.cpp
@@ -1610,14 +1610,6 @@ static LayoutSize GetElementCount(IntVal* val)
}
else if (const auto polyIntVal = as<PolynomialIntVal>(val))
{
- // TODO: We want to treat the case where the number of
- // elements in an array depends on a generic parameter
- // much like the case where the number of elements is
- // unbounded, *but* we can't just blindly do that because
- // an API might disallow unbounded arrays in various
- // cases where a generic bound might work (because
- // any concrete specialization will have a finite bound...)
- //
return 0;
}
SLANG_UNEXPECTED("unhandled integer literal kind");