diff options
| author | Yong He <yonghe@outlook.com> | 2023-05-30 21:15:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 21:15:55 -0700 |
| commit | 5c28677ff8bb1ab498954795ae3907f3b6c3b03f (patch) | |
| tree | 9056f65b0637a61700cd70c1af84d5b97b8c1b69 /source/slang/slang-stdlib.cpp | |
| parent | 5e1974e8cad3396a8c4bedfd63c1ad31b82ec8eb (diff) | |
Fix type checking & loop value hoisting (#2907)
* Fix type checking crash in language server.
* Fix loop var hoisting logic.
Fixes #2903.
* fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
| -rw-r--r-- | source/slang/slang-stdlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index f80254ba6..1f8d0a97a 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -221,7 +221,7 @@ namespace Slang static const IntrinsicOpInfo intrinsicUnaryOps[] = { { kIROp_Neg, "neg", "-", "__BuiltinArithmeticType", ARITHMETIC_MASK }, { kIROp_Not, "logicalNot", "!", nullptr, BOOL_MASK | BOOL_RESULT }, - { kIROp_BitNot, "not", "~", "__BuiltinIntegerType", INT_MASK }, + { kIROp_BitNot, "not", "~", "__BuiltinLogicalType", INT_MASK }, }; static const IntrinsicOpInfo intrinsicBinaryOps[] = { |
