summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorYong He <yongh@outlook.com>2018-01-03 12:47:46 -0800
committerYong He <yongh@outlook.com>2018-01-03 12:47:46 -0800
commit36bc65aa95210f383df9564c75bf1fa9efdadf8a (patch)
tree57dd54ff5b71e16c9efe99b5730405e347f2d8a5 /source/slang/emit.cpp
parent9f89c3b2de80c49222c4a6b48e845894c4256a5d (diff)
parent51f0701989ac4730cd87f0d8c656a1c6b1618255 (diff)
Merge https://github.com/shader-slang/slang
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;