From 70714705747f3491c55e14b74f87641010351d6c Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 7 Dec 2022 12:52:20 -0800 Subject: Remove `construct` IR op. (#2555) Co-authored-by: Yong He --- source/slang/slang-stdlib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-stdlib.cpp') 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; -- cgit v1.2.3