diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-04 09:36:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-04 09:36:23 -0700 |
| commit | c6e6b7a9177bf4f7fc2f05da36c5952979006d78 (patch) | |
| tree | 6db694b5b4bf94ce48678c73921676f9d305614d /source/slang/slang-check-modifier.cpp | |
| parent | 015bde8d5a46f32979c00dbb1feb4b3d80729c44 (diff) | |
Higher order differentiation. (#2487)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-modifier.cpp')
| -rw-r--r-- | source/slang/slang-check-modifier.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index 91f655a15..d8b05198c 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -484,27 +484,6 @@ namespace Slang return false; } } - else if (auto builtinAssocTypeAttr = as<BuiltinRequirementAttribute>(attr)) - { - if (attr->args.getCount() == 1) - { - //IntVal* outIntVal; - if (auto cInt = checkConstantEnumVal(attr->args[0])) - { - builtinAssocTypeAttr->kind = (BuiltinRequirementKind)(cInt->value); - } - else - { - getSink()->diagnose(attr, Diagnostics::expectedSingleIntArg, attr->keywordName); - return false; - } - } - else - { - getSink()->diagnose(attr, Diagnostics::expectedSingleIntArg, attr->keywordName); - return false; - } - } else if (auto unrollAttr = as<UnrollAttribute>(attr)) { // Check has an argument. We need this because default behavior is to give an error |
