Skip to content

Commit

Permalink
Clarify when it's safe to remove and deallocate an IRInst
Browse files Browse the repository at this point in the history
  • Loading branch information
aleino-nv committed Dec 11, 2024
1 parent ced937a commit 45e7ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/slang/slang-ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 45e7ca7

Please sign in to comment.