From 59e3c50bcd58130e81e1f57b21d6e57b4d4aba6d Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 08:32:43 +0000 Subject: feat(classes): destroy and release heap objects with DELETE Co-Authored-By: Claude Opus 5.5 --- lib/CodeGen/MemoryHandler.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/CodeGen/MemoryHandler.cc') 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)}); +} -- cgit v1.3.1-4-g156e