From 0eb539c0de720d03264fa96b2657264818147ca9 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Wed, 11 Dec 2024 14:56:16 +0200 Subject: [PATCH] Clarify when it's safe to remove and deallocate an IRInst --- source/slang/slang-ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 29fbcc3c95..d1c16a3a1a 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -7971,7 +7971,7 @@ void IRInst::removeOperand(Index index) } // Remove this instruction from its parent block, -// and then destroy it (it had better have no uses!) +// and then destroy it (it had better have no uses, or descendants with uses!) void IRInst::removeAndDeallocate() { removeAndDeallocateAllDecorationsAndChildren();