aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MemoryHandler.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 08:32:43 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 08:32:43 +0000
commit59e3c50bcd58130e81e1f57b21d6e57b4d4aba6d (patch)
treec5f6c5b1bd367feadca0c2e7d0f47c8dedb91b20 /lib/CodeGen/MemoryHandler.cc
parente847e4c53cf21fcb96f7ed7765e305a7ec8e6c19 (diff)
feat(classes): destroy and release heap objects with DELETE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/MemoryHandler.cc')
-rw-r--r--lib/CodeGen/MemoryHandler.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/MemoryHandler.cc b/lib/CodeGen/MemoryHandler.cc
index 07fe6f6..fa25eb9 100644
--- a/lib/CodeGen/MemoryHandler.cc
+++ b/lib/CodeGen/MemoryHandler.cc
@@ -152,3 +152,8 @@ Value *MemoryHandler::emitResize(Value *Address, Value *Size, int Line) {
ensureRuntime();
return Exceptions.emitCall(ResizeFn, {Address, Size, Builder.getInt32(Line)}, "resized");
}
+
+void MemoryHandler::emitValidate(Value *Address, int Line) {
+ ensureRuntime();
+ Exceptions.emitCall(FindFn, {Address, Builder.getInt32(Line)});
+}