summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 080478225..e60941e50 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -7122,6 +7122,7 @@ emitDeclImpl(decl, nullptr);
case kIROp_global_var:
{
auto irGlobal = (IRGlobalVar*) value;
+ emitIRUsedType(ctx, irGlobal->type);
emitIRUsedTypesForGlobalValueWithCode(ctx, irGlobal);
}
break;