From 5562215028adab99491a40241661f4c2238b2642 Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Fri, 27 Jun 2025 20:13:04 +0300 Subject: Don't call destructor, it causes UB when reading inst afterwards (#7544) --- source/slang/slang-ir.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'source') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index bf332aaf7..f42cfc7f2 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -8478,9 +8478,6 @@ void IRInst::removeAndDeallocate() } removeArguments(); removeFromParent(); - - // Run destructor to be sure... - this->~IRInst(); } void IRInst::removeAndDeallocateAllDecorationsAndChildren() -- cgit v1.2.3