From e9d5ecbf19147af6e1473020b64ced4286b79079 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 15 Jul 2020 11:39:11 -0700 Subject: Refactor lower-generics pass into separate subpasses. (#1442) --- source/slang/slang-ir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-ir.cpp') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index efb8b3b27..fc4b71138 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -2919,7 +2919,7 @@ namespace Slang IRStructType* structType = createInst( this, kIROp_StructType, - nullptr); + getTypeKind()); addGlobalValue(this, structType); return structType; } @@ -2929,7 +2929,7 @@ namespace Slang IRInterfaceType* interfaceType = createInst( this, kIROp_InterfaceType, - nullptr, + getTypeKind(), operandCount, operands); addGlobalValue(this, interfaceType); -- cgit v1.2.3