summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-stdlib.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-12-07 12:52:20 -0800
committerGitHub <noreply@github.com>2022-12-07 12:52:20 -0800
commit70714705747f3491c55e14b74f87641010351d6c (patch)
tree8b0e3905892da915b731521dbd3dc0c86482b406 /source/slang/slang-stdlib.cpp
parent3a3a8b5f7701109fc413f42692c4de5769870489 (diff)
Remove `construct` IR op. (#2555)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
-rw-r--r--source/slang/slang-stdlib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp
index 352d4ee27..17fb3d28b 100644
--- a/source/slang/slang-stdlib.cpp
+++ b/source/slang/slang-stdlib.cpp
@@ -198,9 +198,9 @@ namespace Slang
BaseTypeConversionInfo const& fromInfo)
{
if (toInfo.tag == fromInfo.tag)
- return (IROp)0;
+ return kIROp_Nop;
- IROp intrinsicOpCode = (IROp)0;
+ IROp intrinsicOpCode = kIROp_Nop;
auto toStyle = getTypeStyle(toInfo.tag);
auto fromStyle = getTypeStyle(fromInfo.tag);
if (toStyle == kIROp_BoolType) toStyle = kIROp_IntType;