summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp4
1 files changed, 2 insertions, 2 deletions
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<IRStructType>(
this,
kIROp_StructType,
- nullptr);
+ getTypeKind());
addGlobalValue(this, structType);
return structType;
}
@@ -2929,7 +2929,7 @@ namespace Slang
IRInterfaceType* interfaceType = createInst<IRInterfaceType>(
this,
kIROp_InterfaceType,
- nullptr,
+ getTypeKind(),
operandCount,
operands);
addGlobalValue(this, interfaceType);