Planning static specialization

This commit is contained in:
Michael Schimmel
2025-11-10 10:00:08 +01:00
parent 7aa406f27b
commit 8a6c866a9c
2 changed files with 83 additions and 2 deletions
+1 -2
View File
@@ -220,10 +220,9 @@ begin
// Create the new execution scope for this function call.
lambdaScope := TScope.CreateScope(closureScope, scopeDescriptor, capturedCells);
// Capture the closure itself in slot 0 for 'recur' to find it.
adr.Kind := akLocalOrParent;
adr.ScopeDepth := 0;
// Capture the closure itself in slot 0 for 'recur' to find it.
adr.SlotIndex := 0;
lambdaScope[adr] := TDataValue(closure); // Explicit cast