summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-spirv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
-rw-r--r--source/slang/slang-emit-spirv.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index 784ded1c9..b9e868b89 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -5287,6 +5287,7 @@ SlangResult emitSPIRVFromIR(
for (auto ptrType : context.m_forwardDeclaredPointers)
{
auto spvPtrType = context.m_mapIRInstToSpvInst[ptrType];
+ context.ensureInst(ptrType->getValueType());
auto parent = spvPtrType->parent;
spvPtrType->removeFromParent();
parent->addInst(spvPtrType);