diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/ir.cpp b/source/slang/ir.cpp index e3647a47b..eadcd34d0 100644 --- a/source/slang/ir.cpp +++ b/source/slang/ir.cpp @@ -569,6 +569,7 @@ namespace Slang IRParentInst* parent = builder->shared->module; IRConstant keyInst; + memset(&keyInst, 0, sizeof(keyInst)); keyInst.op = op; keyInst.type.usedValue = type; memcpy(&keyInst.u, value, valueSize); |
