summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-06-27 20:13:04 +0300
committerGitHub <noreply@github.com>2025-06-27 17:13:04 +0000
commit5562215028adab99491a40241661f4c2238b2642 (patch)
treeb31efdfe05de987c5527d100b01a1a4a411abd4e /source
parentc5295eae268f78c306c9401719bb4e06ba63ba16 (diff)
Don't call destructor, it causes UB when reading inst afterwards (#7544)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir.cpp3
1 files changed, 0 insertions, 3 deletions
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()