From 5b2eb06816521cc0fcfe03258452560bd200002d Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 21 Sep 2023 14:00:48 -0700 Subject: 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 --- source/slang/slang-ir-validate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-validate.cpp') 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(child) ) + else if( as(child) ) { validate(context, state <= kState_AfterParam, child, "parameters must come before ordinary instructions"); state = kState_AfterParam; -- cgit v1.2.3