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-ir-specialize-dispatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-specialize-dispatch.cpp') diff --git a/source/slang/slang-ir-specialize-dispatch.cpp b/source/slang/slang-ir-specialize-dispatch.cpp index 88e2497be..21ba1dee6 100644 --- a/source/slang/slang-ir-specialize-dispatch.cpp +++ b/source/slang/slang-ir-specialize-dispatch.cpp @@ -157,7 +157,7 @@ IRFunc* specializeDispatchFunction(SharedGenericsLoweringContext* sharedContext, } else { - auto defaultValue = builder->emitConstructorInst(callInst->getDataType(), 0, nullptr); + auto defaultValue = builder->emitDefaultConstruct(callInst->getDataType()); builder->emitReturn(defaultValue); } } -- cgit v1.2.3