فهرست منبع

* only walk the node tree if there are indeed captured symbols to convert

Sven/Sarah Barth 1 سال پیش
والد
کامیت
1606d4e28d
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      compiler/procdefutil.pas

+ 2 - 1
compiler/procdefutil.pas

@@ -1641,7 +1641,8 @@ implementation
       { not required anymore }
       capturedsyms.free;
 
-      foreachnodestatic(pm_postprocess,tree,@convert_captured_sym,@convertarg);
+      if convertarg.mappings.count>0 then
+        foreachnodestatic(pm_postprocess,tree,@convert_captured_sym,@convertarg);
 
       for i:=0 to convertarg.mappings.count-1 do
         begin