diff options
| author | Yong He <yongh@outlook.com> | 2018-01-03 12:47:46 -0800 |
|---|---|---|
| committer | Yong He <yongh@outlook.com> | 2018-01-03 12:47:46 -0800 |
| commit | 36bc65aa95210f383df9564c75bf1fa9efdadf8a (patch) | |
| tree | 57dd54ff5b71e16c9efe99b5730405e347f2d8a5 /source/slang/emit.cpp | |
| parent | 9f89c3b2de80c49222c4a6b48e845894c4256a5d (diff) | |
| parent | 51f0701989ac4730cd87f0d8c656a1c6b1618255 (diff) | |
Merge https://github.com/shader-slang/slang
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 1 |
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; |
