mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
Docs for Finch 2.0: beginners, technicians, engineers (en, pl); READMEs; raylib example
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c7ddd4d8b6
commit
3e55da2645
13 changed files with 2590 additions and 2140 deletions
|
|
@ -230,7 +230,8 @@ Value *Codegen::own(const Value_ &v) {
|
|||
}
|
||||
|
||||
void Codegen::release(const Value_ &v) {
|
||||
if (v.fresh && v.v && owning(v.type)) dropValue(v.v, v.type);
|
||||
// constants (string literals, empty arrays) own no memory: nothing to free
|
||||
if (v.fresh && v.v && !isa<Constant>(v.v) && owning(v.type)) dropValue(v.v, v.type);
|
||||
}
|
||||
|
||||
Value *Codegen::copyValue(Value *v, const FType &t) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue