diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-21 14:00:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 14:00:48 -0700 |
| commit | 5b2eb06816521cc0fcfe03258452560bd200002d (patch) | |
| tree | dc06cc626ff0059dded3f4245f9309b3071ae94c /source/slang/slang-ir-validate.cpp | |
| parent | af8ce68e9fd7b6255b6e4e9e9524a285497116dc (diff) | |
Various slangpy fixes. (#3227)
* Make dynamic cast transparent through `IRAttributedType`.
* Add [CUDAXxx] variant of attributes.
* Support marshaling of vector types.
* Wrap cuda kernels in `extern "C"` block.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-validate.cpp')
| -rw-r--r-- | source/slang/slang-ir-validate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-validate.cpp b/source/slang/slang-ir-validate.cpp index 2973e1ee5..af793bb54 100644 --- a/source/slang/slang-ir-validate.cpp +++ b/source/slang/slang-ir-validate.cpp @@ -80,7 +80,7 @@ namespace Slang validate(context, state <= kState_AfterDecoration, child, "decorations must come before other child instructions"); state = kState_AfterDecoration; } - else if( as<IRParam>(child) ) + else if( as<IRParam, IRDynamicCastBehavior::NoUnwrap>(child) ) { validate(context, state <= kState_AfterParam, child, "parameters must come before ordinary instructions"); state = kState_AfterParam; |
