From 5c28677ff8bb1ab498954795ae3907f3b6c3b03f Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 30 May 2023 21:15:55 -0700 Subject: 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 --- source/slang/slang-stdlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-stdlib.cpp') 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[] = { -- cgit v1.2.3