diff options
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index e74a57424..eefcb9eea 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -7067,6 +7067,8 @@ namespace Slang // and then destroy it (it had better have no uses!) void IRInst::removeAndDeallocate() { + removeAndDeallocateAllDecorationsAndChildren(); + if (auto module = getModule()) { if (getIROpInfo(getOp()).isHoistable()) @@ -7080,7 +7082,6 @@ namespace Slang module->getDeduplicationContext()->getInstReplacementMap().remove(this); } removeArguments(); - removeAndDeallocateAllDecorationsAndChildren(); removeFromParent(); // Run destructor to be sure... |
