summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-04-30 11:23:11 -0700
committerGitHub <noreply@github.com>2024-04-30 11:23:11 -0700
commit95ca2aa72cca9968dabd6dfa1a4dcf7de3909035 (patch)
tree5d4c02b05e084be3dd14dc0607676f1bb8825637 /source/slang/slang.cpp
parent492f56e02fe9e9902eabefaa34f5b2fc9778dd47 (diff)
Change stdlib to not depend on short-circuit (#4056)
Do not use "&&" to implement the intrinsic kIROp_And, instead define a 'and' function in stdlib. So it will be up to us to determine whether we want to use 'short-circuit' behavior in stdlib.
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 112ec2058..4a446a351 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -170,7 +170,6 @@ void Session::init()
// Built in linkage uses the built in builder
m_builtinLinkage = new Linkage(this, builtinAstBuilder, nullptr);
m_builtinLinkage->m_optionSet.set(CompilerOptionName::DebugInformation, DebugInfoLevel::None);
- m_builtinLinkage->m_optionSet.set(CompilerOptionName::DisableShortCircuit, true);
// Because the `Session` retains the builtin `Linkage`,
// we need to make sure that the parent pointer inside